Skip to content

Commit 4b823b1

Browse files
authored
[Python] Fix inconsistent creator function naming in generated code (#8791) (#8792)
1 parent 4c47f4c commit 4b823b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/idl_gen_python.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ class PythonGenerator : public BaseGenerator {
12391239
auto& code = *code_ptr;
12401240

12411241
code += "\n";
1242-
code += "def Create" + namer_.Type(struct_def);
1242+
code += "def Create" + namer_.Function(struct_def);
12431243
code += "(builder";
12441244
}
12451245

0 commit comments

Comments
 (0)