Skip to content

Commit dbb0946

Browse files
Paul C Robertsbraincore
authored andcommitted
Fix some doc references
Summary: Changed from emit_line to emit Changed from super_class to superclass Reviewed By: kelkabany
1 parent 709300f commit dbb0946

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/generator_ref.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

6363
Using 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

227227
The contents of ``ex_indent.out`` is::
228228

0 commit comments

Comments
 (0)