Fix typo in Go tutorial (#5274)
This commit is contained in:
parent
b2ce86ef8a
commit
5cdbd02404
|
@ -653,14 +653,14 @@ our `orc` Monster, lets create some `Weapon`s: a `Sword` and an `Axe`.
|
||||||
|
|
||||||
// Create the first `Weapon` ("Sword").
|
// Create the first `Weapon` ("Sword").
|
||||||
sample.WeaponStart(builder)
|
sample.WeaponStart(builder)
|
||||||
sample.Weapon.AddName(builder, weaponOne)
|
sample.WeaponAddName(builder, weaponOne)
|
||||||
sample.Weapon.AddDamage(builder, 3)
|
sample.WeaponAddDamage(builder, 3)
|
||||||
sword := sample.WeaponEnd(builder)
|
sword := sample.WeaponEnd(builder)
|
||||||
|
|
||||||
// Create the second `Weapon` ("Axe").
|
// Create the second `Weapon` ("Axe").
|
||||||
sample.WeaponStart(builder)
|
sample.WeaponStart(builder)
|
||||||
sample.Weapon.AddName(builder, weaponTwo)
|
sample.WeaponAddName(builder, weaponTwo)
|
||||||
sample.Weapon.AddDamage(builder, 5)
|
sample.WeaponAddDamage(builder, 5)
|
||||||
axe := sample.WeaponEnd(builder)
|
axe := sample.WeaponEnd(builder)
|
||||||
~~~
|
~~~
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue