From f82c4ac904d38fcfbb76de249ce810ec7a73809c Mon Sep 17 00:00:00 2001 From: Shynur Date: Fri, 10 Jan 2025 13:53:27 +0800 Subject: [PATCH] fix typo in tutorial (#8476) --- 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 24cec450a..1be1061ce 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)