fix typo in tutorial (#8476)

This commit is contained in:
Shynur
2025-01-10 13:53:27 +08:00
committed by GitHub
parent 9a40ab2495
commit f82c4ac904

View File

@@ -82,8 +82,8 @@ See the [Tutorial](tutorial.md) for a more in depth guide.
const Monster snowman = GetMonster(flatbuffer);
// Access the monster's fields directly.
ASSERT_EQ(snowman.name(), "Abominable Snowman");
ASSERT_EQ(snowman.health(), 100);
ASSERT_EQ(snowman->name(), "Abominable Snowman");
ASSERT_EQ(snowman->health(), 100);
```
See [`Rust` examples](https://github.com/google/flatbuffers/blob/master/samples/sample_binary.rs#L92-L106)