diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-12-10 13:06:55 -0800 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-12-10 13:06:55 -0800 |
| commit | b90ee4e6b178bdd6e60d0f54c92301fae2f54fd7 (patch) | |
| tree | 777f1a47d020001c1e7ffba867404f1d341d78d9 | |
| parent | 3f78e0ecc03b9e0c7b46c64a4be69343c6a8888a (diff) | |
| parent | 1ba9419e6c8ea85e2d9f132d45dda4acb9598e53 (diff) | |
Merge pull request #4149 from lkuper/docs
Tutorial typo fixes
| -rw-r--r-- | doc/tutorial.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md index 04397642415..6927c82125b 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -1455,7 +1455,7 @@ let stack_crayons: &str = "Almond, AntiqueBrass, Apricot"; let stack_crayons: &str = &"Aquamarine, Asparagus, AtomicTangerine"; // A local heap (managed) string -let local_crayons: @str = @"BananMania, Beaver, Bittersweet"; +let local_crayons: @str = @"BananaMania, Beaver, Bittersweet"; // An exchange heap (owned) string let exchange_crayons: ~str = ~"Black, BlizzardBlue, Blue"; @@ -2133,7 +2133,7 @@ let stacky: &Drawable = &new_circle() as &Drawable; Method calls to trait types are _dynamically dispatched_. Since the compiler doesn't know specifically which functions to call at compile -time it uses a lookup table (also known as a vtable or dictionary) to +time, it uses a lookup table (also known as a vtable or dictionary) to select the method to call at runtime. This usage of traits is similar to Java interfaces. @@ -2402,7 +2402,7 @@ tutorials on individual topics. There is further documentation on the [wiki], including articles about [unit testing] in Rust, [documenting][rustdoc] and [packaging][cargo] -Rust code, and a discussion of the [attributes] used to apply metada +Rust code, and a discussion of the [attributes] used to apply metadata to code. [borrow]: tutorial-borrowed-ptr.html |
