File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ Each file contains a one line C++-style comment::
5858 def generate(self, api):
5959 for namespace_name in api.namespaces:
6060 with self.output_to_relative_path(namespace_name + '.cpp'):
61- self.emit_line ('/* {} */'.format(namespace_name))
61+ self.emit ('/* {} */'.format(namespace_name))
6262
6363Using the API Object
6464====================
@@ -149,7 +149,7 @@ all_fields
149149 A list of all StructField objects that make up the struct. Required fields
150150 come before optional fields.
151151
152- super_type
152+ supertype
153153 If it exists, it points to a DataType object (another struct) that this
154154 struct inherits from.
155155
@@ -218,11 +218,11 @@ manager for adding incremental indentation. Here's an example::
218218 def generate(self, api):
219219 with self.output_to_relative_path('ex_indent.out'):
220220 with self.indent()
221- self.emit_line ('hello')
221+ self.emit ('hello')
222222 self._output_world()
223223 def _output_world(self):
224224 with self.indent():
225- self.emit_line ('world')
225+ self.emit ('world')
226226
227227The contents of ``ex_indent.out `` is::
228228
You can’t perform that action at this time.
0 commit comments