Skip to content

Commit c5ec055

Browse files
committed
Rollup merge of rust-lang#32148 - steveklabnik:gh31912, r=apasel422
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 rust-lang#31912
2 parents 76bcf64 + 0f426aa commit c5ec055

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/guessing-game.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ Rust warns us that we haven’t used the `Result` value. This warning comes from
295295
a special annotation that `io::Result` has. Rust is trying to tell you that
296296
you haven’t handled a possible error. The right way to suppress the error is
297297
to actually write error handling. Luckily, if we want to crash if there’s
298-
a problem, we can use these two little methods. If we can recover from the
298+
a problem, we can use `expect()`. If we can recover from the
299299
error somehow, we’d do something else, but we’ll save that for a future
300300
project.
301301

0 commit comments

Comments
 (0)