mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-24 16:26:10 +00:00
fix typo in tutorial (#8476)
This commit is contained in:
@@ -82,8 +82,8 @@ See the [Tutorial](tutorial.md) for a more in depth guide.
|
|||||||
const Monster snowman = GetMonster(flatbuffer);
|
const Monster snowman = GetMonster(flatbuffer);
|
||||||
|
|
||||||
// Access the monster's fields directly.
|
// Access the monster's fields directly.
|
||||||
ASSERT_EQ(snowman.name(), "Abominable Snowman");
|
ASSERT_EQ(snowman->name(), "Abominable Snowman");
|
||||||
ASSERT_EQ(snowman.health(), 100);
|
ASSERT_EQ(snowman->health(), 100);
|
||||||
```
|
```
|
||||||
|
|
||||||
See [`Rust` examples](https://github.com/google/flatbuffers/blob/master/samples/sample_binary.rs#L92-L106)
|
See [`Rust` examples](https://github.com/google/flatbuffers/blob/master/samples/sample_binary.rs#L92-L106)
|
||||||
|
|||||||
Reference in New Issue
Block a user