diff options
author | Caleb Epstein <caleb.epstein@gmail.com> | 2016-07-27 16:02:49 -0400 |
---|---|---|
committer | Caleb Epstein <caleb@volanttrading.com> | 2016-07-27 16:15:55 -0400 |
commit | 094f4d1bad5eb52565f61a096c392987515b9213 (patch) | |
tree | bf2460332877a4f6eff1e20d05629cc71360e0c4 /docs/source/CppUsage.md | |
parent | a0398ce0f540f0a4dce2f4acd6487557321ded2f (diff) | |
download | flatbuffers-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-x | docs/source/CppUsage.md | 2 |
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) |