summaryrefslogtreecommitdiff
path: root/docs/source/CppUsage.md
diff options
context:
space:
mode:
authorCaleb Epstein <caleb.epstein@gmail.com>2016-07-27 16:02:49 -0400
committerCaleb Epstein <caleb@volanttrading.com>2016-07-27 16:15:55 -0400
commit094f4d1bad5eb52565f61a096c392987515b9213 (patch)
treebf2460332877a4f6eff1e20d05629cc71360e0c4 /docs/source/CppUsage.md
parenta0398ce0f540f0a4dce2f4acd6487557321ded2f (diff)
downloadflatbuffers-094f4d1bad5eb52565f61a096c392987515b9213.tar.gz
flatbuffers-094f4d1bad5eb52565f61a096c392987515b9213.tar.bz2
flatbuffers-094f4d1bad5eb52565f61a096c392987515b9213.zip
Fix docs for object API usage
Diffstat (limited to 'docs/source/CppUsage.md')
-rwxr-xr-xdocs/source/CppUsage.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/source/CppUsage.md b/docs/source/CppUsage.md
index 060432b0..c1df1596 100755
--- a/docs/source/CppUsage.md
+++ b/docs/source/CppUsage.md
@@ -103,7 +103,7 @@ To use:
cout << monsterobj->name; // This is now a std::string!
monsterobj->name = "Bob"; // Change the name.
FlatBufferBuilder fbb;
- monsterobj->Pack(fbb); // Serialize into new buffer.
+ CreateMonster(fbb, monsterobj->get()); // Serialize into new buffer.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
## Reflection (& Resizing)