From 13c9c674fd9f349dbe9001694582ebb1f6eff6fc Mon Sep 17 00:00:00 2001 From: csukuangfj <5284924+csukuangfj@users.noreply.github.com> Date: Fri, 1 Mar 2019 04:39:26 +0800 Subject: [PATCH] [doc] fix typos in doc. (#5217) --- docs/source/Tutorial.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/source/Tutorial.md b/docs/source/Tutorial.md index 34cfe5b86..db3efa3d8 100644 --- a/docs/source/Tutorial.md +++ b/docs/source/Tutorial.md @@ -767,7 +767,7 @@ our `orc` Monster, lets create some `Weapon`s: a `Sword` and an `Axe`. - // The genearted ObjectBuilder classes offer an easier to use alternative + // The generated ObjectBuilder classes offer an easier to use alternative // at the cost of requiring some additional reference allocations. If memory // usage is critical, or if you'll be working with especially large messages // or tables, you should prefer using the generated Builder classes. @@ -1238,7 +1238,7 @@ for the `path` field above: final vec3Builder = new myGame.Vec3Builder(builder); vec3Builder.finish(4.0, 5.0, 6.0); vec3Builder.finish(1.0, 2.0, 3.0); - final int path = builder.endStructVector(2); // the lenght of the vector + final int path = builder.endStructVector(2); // the length of the vector // Otherwise, using the ObjectBuilder classes: // The dart implementation provides a simple interface for writing vectors @@ -1520,7 +1520,7 @@ can serialize the monster itself: // Create the monster using the `Monster::create` helper function. This // function accepts a `MonsterArgs` struct, which supplies all of the data // needed to build a `Monster`. To supply empty/default fields, just use the - // Rust built-in `Default::default()` function, as demononstrated below. + // Rust built-in `Default::default()` function, as demonstrated below. let orc = Monster::create(&mut builder, &MonsterArgs{ pos: Some(&Vec3::new(1.0f32, 2.0f32, 3.0f32)), mana: 150, @@ -1663,7 +1663,7 @@ Here is a repetition these lines, to help highlight them more clearly: