From da88be05e12c5e616ee9b7ce6b653c1918fff232 Mon Sep 17 00:00:00 2001 From: Jason Monschke <43759989+jmonschke-onscale@users.noreply.github.com> Date: Thu, 25 Jul 2019 18:09:40 +0000 Subject: [PATCH] Change deprecated vector Length() to size() in tutorial (#5450) --- 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 18818a0af..e8d8519be 100644 --- a/docs/source/Tutorial.md +++ b/docs/source/Tutorial.md @@ -2555,7 +2555,7 @@ FlatBuffers `vector`.
~~~{.cpp} auto inv = monster->inventory(); // A pointer to a `flatbuffers::Vector<>`. - auto inv_len = inv->Length(); + auto inv_len = inv->size(); auto third_item = inv->Get(2); ~~~
@@ -2650,7 +2650,7 @@ except your need to handle the result as a FlatBuffer `table`:
~~~{.cpp} auto weapons = monster->weapons(); // A pointer to a `flatbuffers::Vector<>`. - auto weapon_len = weapons->Length(); + auto weapon_len = weapons->size(); auto second_weapon_name = weapons->Get(1)->name()->str(); auto second_weapon_damage = weapons->Get(1)->damage() ~~~