From 094f4d1bad5eb52565f61a096c392987515b9213 Mon Sep 17 00:00:00 2001 From: Caleb Epstein Date: Wed, 27 Jul 2016 16:02:49 -0400 Subject: [PATCH] Fix docs for object API usage --- docs/source/CppUsage.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/CppUsage.md b/docs/source/CppUsage.md index 060432b01..c1df15965 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)