mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-02 10:17:51 +00:00
Python: Fix potential code generation issue of documentation comment.
This commit is contained in:
parent
aeff09d724
commit
82a71b18f1
2 changed files with 2 additions and 3 deletions
|
|
@ -493,7 +493,7 @@ static void GenStruct(const StructDef &struct_def,
|
|||
StructDef *root_struct_def) {
|
||||
if (struct_def.generated) return;
|
||||
|
||||
GenComment(struct_def.doc_comment, code_ptr, nullptr);
|
||||
GenComment(struct_def.doc_comment, code_ptr, nullptr, "# ");
|
||||
BeginClass(struct_def, code_ptr);
|
||||
if (&struct_def == root_struct_def) {
|
||||
// Generate a special accessor for the table that has been declared as
|
||||
|
|
@ -660,5 +660,3 @@ bool GeneratePython(const Parser &parser,
|
|||
}
|
||||
|
||||
} // namespace flatbuffers
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue