Skip to content

Commit

Permalink
Small grammar fix in Guessing Game
Browse files Browse the repository at this point in the history
When it was Option.expect(), there was an .ok().expect(), but now that it uses Result.expect(), there's only one method, not two.

Fixes #31912
  • Loading branch information
steveklabnik committed Mar 9, 2016
1 parent c97524b commit 0f426aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/book/guessing-game.md
Expand Up @@ -295,7 +295,7 @@ Rust warns us that we haven’t used the `Result` value. This warning comes from
a special annotation that `io::Result` has. Rust is trying to tell you that
you haven’t handled a possible error. The right way to suppress the error is
to actually write error handling. Luckily, if we want to crash if there’s
a problem, we can use these two little methods. If we can recover from the
a problem, we can use `expect()`. If we can recover from the
error somehow, we’d do something else, but we’ll save that for a future
project.

Expand Down

0 comments on commit 0f426aa

Please sign in to comment.