From 5cdbd02404839c687a9cbaa607188e702c4bdb9e Mon Sep 17 00:00:00 2001 From: unexge Date: Thu, 4 Apr 2019 22:28:09 +0300 Subject: [PATCH] Fix typo in Go tutorial (#5274) --- docs/source/Tutorial.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/source/Tutorial.md b/docs/source/Tutorial.md index 4291c0653..482fe1be9 100644 --- a/docs/source/Tutorial.md +++ b/docs/source/Tutorial.md @@ -653,14 +653,14 @@ our `orc` Monster, lets create some `Weapon`s: a `Sword` and an `Axe`. // Create the first `Weapon` ("Sword"). sample.WeaponStart(builder) - sample.Weapon.AddName(builder, weaponOne) - sample.Weapon.AddDamage(builder, 3) + sample.WeaponAddName(builder, weaponOne) + sample.WeaponAddDamage(builder, 3) sword := sample.WeaponEnd(builder) // Create the second `Weapon` ("Axe"). sample.WeaponStart(builder) - sample.Weapon.AddName(builder, weaponTwo) - sample.Weapon.AddDamage(builder, 5) + sample.WeaponAddName(builder, weaponTwo) + sample.WeaponAddDamage(builder, 5) axe := sample.WeaponEnd(builder) ~~~