Fix function name for Pack method for structs
This commit is contained in:
parent
807adb73b2
commit
90c5472e3a
|
@ -2097,7 +2097,7 @@ class PythonGenerator : public BaseGenerator {
|
||||||
void GenPackForStruct(const StructDef &struct_def,
|
void GenPackForStruct(const StructDef &struct_def,
|
||||||
std::string *code_ptr) const {
|
std::string *code_ptr) const {
|
||||||
auto &code = *code_ptr;
|
auto &code = *code_ptr;
|
||||||
const auto struct_fn = namer_.Function(struct_def);
|
const auto struct_fn = namer_.Type(struct_def);
|
||||||
|
|
||||||
GenReceiverForObjectAPI(struct_def, code_ptr);
|
GenReceiverForObjectAPI(struct_def, code_ptr);
|
||||||
code += "Pack(self, builder):";
|
code += "Pack(self, builder):";
|
||||||
|
|
Loading…
Reference in New Issue