From 8f1729f7dfdba521fe53d2a7ecb0aefe6669636a Mon Sep 17 00:00:00 2001 From: Philip Rideout Date: Sat, 17 Oct 2015 17:48:06 -0700 Subject: [PATCH] Fix minor typos in the Python documentation. --- docs/source/PythonUsage.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/PythonUsage.md b/docs/source/PythonUsage.md index e20b464d6..33008b3fe 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()'.