From 6a6e9a987a0c11368f921057fdb52f3719aa555f Mon Sep 17 00:00:00 2001 From: Sergey Veselkov Date: Sat, 23 Jan 2016 12:19:11 +0300 Subject: [PATCH] Fix the missing line in the guessing-game.md r? @steveklabnik --- src/doc/book/guessing-game.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/doc/book/guessing-game.md b/src/doc/book/guessing-game.md index 2e315333565c7..80aca56bd1e9f 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