about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2016-01-23 09:38:44 -0500
committerSteve Klabnik <steve@steveklabnik.com>2016-01-23 09:38:44 -0500
commit4d99bad15870131a9131a58dfba297e44b1c930b (patch)
treeee7b12282997396294e3a6caaaf6806c84a53a27 /src
parentb0b1df84254fb6b6fc9eb11cceea8441c6cf596d (diff)
parent6a6e9a987a0c11368f921057fdb52f3719aa555f (diff)
downloadrust-4d99bad15870131a9131a58dfba297e44b1c930b.tar.gz
rust-4d99bad15870131a9131a58dfba297e44b1c930b.zip
Rollup merge of #31145 - D101101:patch-1, r=steveklabnik
r? @steveklabnik
Diffstat (limited to 'src')
-rw-r--r--src/doc/book/guessing-game.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/doc/book/guessing-game.md b/src/doc/book/guessing-game.md
index 2e315333565..80aca56bd1e 100644
--- a/src/doc/book/guessing-game.md
+++ b/src/doc/book/guessing-game.md
@@ -908,6 +908,7 @@ 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 `expect()` to a `match` statement. The `Result`
 returned by `parse()` is an `enum`  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 successfully parsed integer, or an