diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2016-03-09 03:37:19 -0500 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2016-03-09 03:37:19 -0500 |
| commit | 0f426aa916b17efab99cdc85a5b968d591b4cb4a (patch) | |
| tree | 98ece8fd40b63698a13f52aba35d481f9a97ecca /src | |
| parent | c97524bef9e59a80875110b402b3fc8c139d4d64 (diff) | |
| download | rust-0f426aa916b17efab99cdc85a5b968d591b4cb4a.tar.gz rust-0f426aa916b17efab99cdc85a5b968d591b4cb4a.zip | |
Small grammar fix in Guessing Game
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/book/guessing-game.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/book/guessing-game.md b/src/doc/book/guessing-game.md index b9b6e9a4c95..e071bfdf8bc 100644 --- a/src/doc/book/guessing-game.md +++ b/src/doc/book/guessing-game.md @@ -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. |
