Skip to content

Commit 0f426aa

Browse files
committed
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
1 parent c97524b commit 0f426aa

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)