summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPhilip Rideout <philip@napofearth.com>2015-10-17 17:48:06 -0700
committerPhilip Rideout <philip@napofearth.com>2015-10-17 17:48:06 -0700
commit8f1729f7dfdba521fe53d2a7ecb0aefe6669636a (patch)
treeed3d598fd1e12256727ee1288441535b32cf34d6 /docs
parent94680f5483593b1a48c79b516d153fd432b3f2e8 (diff)
downloadflatbuffers-8f1729f7dfdba521fe53d2a7ecb0aefe6669636a.tar.gz
flatbuffers-8f1729f7dfdba521fe53d2a7ecb0aefe6669636a.tar.bz2
flatbuffers-8f1729f7dfdba521fe53d2a7ecb0aefe6669636a.zip
Fix minor typos in the Python documentation.
Diffstat (limited to 'docs')
-rwxr-xr-xdocs/source/PythonUsage.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/source/PythonUsage.md b/docs/source/PythonUsage.md
index e20b464d..33008b3f 100755
--- a/docs/source/PythonUsage.md
+++ b/docs/source/PythonUsage.md
@@ -36,7 +36,7 @@ You can also construct these buffers in Python using the functions found
in the generated code, and the FlatBufferBuilder class:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.py}
- builder = flatbuffers.NewBuilder(0)
+ builder = flatbuffers.Builder(0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Create strings:
@@ -58,7 +58,7 @@ Create a table with a struct contained therein:
example.MonsterAddTest4(builder, test4s)
mon = example.MonsterEnd(builder)
- final_flatbuffer = bulder.Output()
+ final_flatbuffer = builder.Output()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unlike C++, Python does not support table creation functions like 'createMonster()'.