From 935110f4371bea029d580e7459f55a724660c7a7 Mon Sep 17 00:00:00 2001 From: Shynur Date: Tue, 7 Jan 2025 14:15:14 +0800 Subject: [PATCH] fix typo in tutorial --- docs/source/quick_start.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/quick_start.md b/docs/source/quick_start.md index 24cec450ae8..1be1061ce1f 100644 --- a/docs/source/quick_start.md +++ b/docs/source/quick_start.md @@ -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)