Skip to content

Commit

Permalink
Fix function name for Pack method for structs
Browse files Browse the repository at this point in the history
  • Loading branch information
kojung committed Oct 13, 2024
1 parent 807adb7 commit 90c5472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/idl_gen_python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2097,7 +2097,7 @@ class PythonGenerator : public BaseGenerator {
void GenPackForStruct(const StructDef &struct_def,
std::string *code_ptr) const {
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);
code += "Pack(self, builder):";
Expand Down

0 comments on commit 90c5472

Please sign in to comment.