mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 17:57:25 +00:00
fix cpp usage markdown error (#5845)
This commit is contained in:
parent
9655e12d6d
commit
21cf300f4c
1 changed files with 2 additions and 2 deletions
|
|
@ -117,8 +117,8 @@ To use:
|
|||
GetMonster(flatbuffer)->UnPackTo(&monsterobj);
|
||||
|
||||
// Update object directly like a C++ class instance.
|
||||
cout << monsterobj->name; // This is now a std::string!
|
||||
monsterobj->name = "Bob"; // Change the name.
|
||||
cout << monsterobj.name; // This is now a std::string!
|
||||
monsterobj.name = "Bob"; // Change the name.
|
||||
|
||||
// Serialize into new flatbuffer.
|
||||
FlatBufferBuilder fbb;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue