From d6f51ea16dca240358a923189a987a6c1a2dadd7 Mon Sep 17 00:00:00 2001 From: Casper Date: Mon, 16 Aug 2021 14:43:26 -0400 Subject: [PATCH] fix ptr in flatbuffers cpp tutorial (#6787) Co-authored-by: Casper Neo --- docs/source/Tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/Tutorial.md b/docs/source/Tutorial.md index 0cd9cf062..c043cd23c 100644 --- a/docs/source/Tutorial.md +++ b/docs/source/Tutorial.md @@ -2970,7 +2970,7 @@ We can access the type to dynamically cast the data as needed (since the
~~~{.cpp} - auto union_type = monster.equipped_type(); + auto union_type = monster->equipped_type(); if (union_type == Equipment_Weapon) { auto weapon = static_cast(monster->equipped()); // Requires `static_cast`