From b72a75f87dd6543b5d05a812dfddd264e953408c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Julliard?= Date: Wed, 24 Apr 2019 10:34:21 -0700 Subject: [PATCH] Doc: use correct ref types for flatcc string creation. (#5305) Some string definitions were typed as ns(Weapon_ref_t) while they should be flatbuffers_string_ref_t. Note that the former was also compiling & running correctly as both ref types boil down to the same underlying ref type. --- docs/source/Tutorial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/Tutorial.md b/docs/source/Tutorial.md index 72b49a0ec..e23068b60 100644 --- a/docs/source/Tutorial.md +++ b/docs/source/Tutorial.md @@ -735,10 +735,10 @@ our `orc` Monster, lets create some `Weapon`s: a `Sword` and an `Axe`.
~~~{.c} - ns(Weapon_ref_t) weapon_one_name = flatbuffers_string_create_str(B, "Sword"); + flatbuffers_string_ref_t weapon_one_name = flatbuffers_string_create_str(B, "Sword"); uint16_t weapon_one_damage = 3; - ns(Weapon_ref_t) weapon_two_name = flatbuffers_string_create_str(B, "Axe"); + flatbuffers_string_ref_t weapon_two_name = flatbuffers_string_create_str(B, "Axe"); uint16_t weapon_two_damage = 5; ns(Weapon_ref_t) sword = ns(Weapon_create(B, weapon_one_name, weapon_one_damage));