fix cpp usage markdown error (#5845)

This commit is contained in:
Meng Yang 2020-04-10 00:38:58 +08:00 committed by GitHub
parent 9655e12d6d
commit 21cf300f4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -117,8 +117,8 @@ To use:
GetMonster(flatbuffer)->UnPackTo(&monsterobj); GetMonster(flatbuffer)->UnPackTo(&monsterobj);
// Update object directly like a C++ class instance. // Update object directly like a C++ class instance.
cout << monsterobj->name; // This is now a std::string! cout << monsterobj.name; // This is now a std::string!
monsterobj->name = "Bob"; // Change the name. monsterobj.name = "Bob"; // Change the name.
// Serialize into new flatbuffer. // Serialize into new flatbuffer.
FlatBufferBuilder fbb; FlatBufferBuilder fbb;