mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-27 16:58:07 +00:00
fix cpp usage markdown error (#5845)
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user