about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-09-17 17:06:54 -0400
committerSteve Klabnik <steve@steveklabnik.com>2015-09-17 17:06:54 -0400
commit54063e330adb8e83272733dcc21e45fb7792c0bb (patch)
treee9b284c835bc9f679371af5d529dc489f5359bac
parent24fdaedafff117611063cba7cbe722231119eaeb (diff)
parent5c5cca58f7c8e59703892d9500327aafdd44e45e (diff)
downloadrust-54063e330adb8e83272733dcc21e45fb7792c0bb.tar.gz
rust-54063e330adb8e83272733dcc21e45fb7792c0bb.zip
Rollup merge of #28276 - jackwilsonv:patch-5, r=Manishearth
-rw-r--r--src/doc/trpl/guessing-game.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/trpl/guessing-game.md b/src/doc/trpl/guessing-game.md
index 4a35022b03c..3a4328562f8 100644
--- a/src/doc/trpl/guessing-game.md
+++ b/src/doc/trpl/guessing-game.md
@@ -599,7 +599,7 @@ With this definition, anything of type `Foo` can be either a
 `Foo::Bar` or a `Foo::Baz`. We use the `::` to indicate the
 namespace for a particular `enum` variant.
 
-The [`Ordering`][ordering] enum has three possible variants: `Less`, `Equal`,
+The [`Ordering`][ordering] `enum` has three possible variants: `Less`, `Equal`,
 and `Greater`. The `match` statement takes a value of a type, and lets you
 create an ‘arm’ for each possible value. Since we have three types of
 `Ordering`, we have three arms:
@@ -918,9 +918,9 @@ let guess: u32 = match guess.trim().parse() {
 
 This is how you generally move from ‘crash on error’ to ‘actually handle the
 error’, by switching from `ok().expect()` to a `match` statement. The `Result`
-returned by `parse()` is an enum just like `Ordering`, but in this case, each
+returned by `parse()` is an `enum` just like `Ordering`, but in this case, each
 variant has some data associated with it: `Ok` is a success, and `Err` is a
-failure. Each contains more information: the successful parsed integer, or an
+failure. Each contains more information: the successfully parsed integer, or an
 error type. In this case, we `match` on `Ok(num)`, which sets the inner value
 of the `Ok` to the name `num`, and then we just return it on the right-hand
 side. In the `Err` case, we don’t care what kind of error it is, so we just