diff options
| author | bors <bors@rust-lang.org> | 2014-07-03 21:46:47 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-07-03 21:46:47 +0000 |
| commit | 5d5c20647f45f2eb74f337e5434bbe63b0c43345 (patch) | |
| tree | 155aab01cbadfe647f739c31ce46b29b792ea7ae /src/doc/tutorial.md | |
| parent | dd812ccbb56193c36819993dea25912788b447f0 (diff) | |
| parent | 9bd6479912990046947913f160f69bc550dd3817 (diff) | |
| download | rust-5d5c20647f45f2eb74f337e5434bbe63b0c43345.tar.gz rust-5d5c20647f45f2eb74f337e5434bbe63b0c43345.zip | |
auto merge of #15377 : alexcrichton/rust/rollup, r=alexcrichton
Closes #15276 (Guide: if) Closes #15280 (std::os - Add join_paths, make setenv non-utf8 capable) Closes #15314 (Guide: functions) Closes #15327 (Simplify PatIdent to contain an Ident rather than a Path) Closes #15340 (Guide: add mutable binding section) Closes #15342 (Fix ICE with nested macro_rules!-style macros) Closes #15350 (Remove duplicated slash in install script path) Closes #15351 (correct a few spelling mistakes in the tutorial) Closes #15352 (librustc: Have the kind checker check sub-bounds in trait casts.) Closes #15359 (Fix spelling errors.) Closes #15361 (Rename set_broadast() to set_broadcast().) Closes #15366 (Simplify creating a parser from a token tree) Closes #15367 (Add examples for StrVector methods) Closes #15372 (Vec::grow should use reserve_additional, Vec::reserve should check against capacity) Closes #15373 (Fix minor issues in the documentation of libtime.)
Diffstat (limited to 'src/doc/tutorial.md')
| -rw-r--r-- | src/doc/tutorial.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/tutorial.md b/src/doc/tutorial.md index 5fe6a5f14c2..2a788d7e793 100644 --- a/src/doc/tutorial.md +++ b/src/doc/tutorial.md @@ -469,7 +469,7 @@ fn signum(x: int) -> int { Rust's `match` construct is a generalized, cleaned-up version of C's `switch` construct. You provide it with a value and a number of -*arms*, each labelled with a pattern, and the code compares the value +*arms*, each labeled with a pattern, and the code compares the value against each pattern in order until one matches. The matching pattern executes its corresponding arm. @@ -2524,7 +2524,7 @@ of the components of types. By design, trait objects don't know the exact type of their contents and so the compiler cannot reason about those properties. You can instruct the compiler, however, that the contents of a trait object must -acribe to a particular bound with a trailing colon (`:`). These are examples of +ascribe to a particular bound with a trailing colon (`:`). These are examples of valid types: ~~~rust @@ -2579,7 +2579,7 @@ This is a silly way to compute the radius of a circle In type-parameterized functions, methods of the supertrait may be called on values of subtrait-bound type parameters. -Refering to the previous example of `trait Circle : Shape`: +Referring to the previous example of `trait Circle : Shape`: ~~~ # trait Shape { fn area(&self) -> f64; } |
