Skip to content

Commit b90ee4e

Browse files
committed
Merge pull request #4149 from lkuper/docs
Tutorial typo fixes
2 parents 3f78e0e + 1ba9419 commit b90ee4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/tutorial.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ let stack_crayons: &str = "Almond, AntiqueBrass, Apricot";
14551455
let stack_crayons: &str = &"Aquamarine, Asparagus, AtomicTangerine";
14561456
14571457
// A local heap (managed) string
1458-
let local_crayons: @str = @"BananMania, Beaver, Bittersweet";
1458+
let local_crayons: @str = @"BananaMania, Beaver, Bittersweet";
14591459
14601460
// An exchange heap (owned) string
14611461
let exchange_crayons: ~str = ~"Black, BlizzardBlue, Blue";
@@ -2133,7 +2133,7 @@ let stacky: &Drawable = &new_circle() as &Drawable;
21332133
21342134
Method calls to trait types are _dynamically dispatched_. Since the
21352135
compiler doesn't know specifically which functions to call at compile
2136-
time it uses a lookup table (also known as a vtable or dictionary) to
2136+
time, it uses a lookup table (also known as a vtable or dictionary) to
21372137
select the method to call at runtime.
21382138

21392139
This usage of traits is similar to Java interfaces.
@@ -2402,7 +2402,7 @@ tutorials on individual topics.
24022402

24032403
There is further documentation on the [wiki], including articles about
24042404
[unit testing] in Rust, [documenting][rustdoc] and [packaging][cargo]
2405-
Rust code, and a discussion of the [attributes] used to apply metada
2405+
Rust code, and a discussion of the [attributes] used to apply metadata
24062406
to code.
24072407

24082408
[borrow]: tutorial-borrowed-ptr.html

0 commit comments

Comments
 (0)