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
This commit is contained in:
Steve Klabnik 2016-03-09 03:37:19 -05:00
parent c97524bef9
commit 0f426aa916

View file

@ -295,7 +295,7 @@ Rust warns us that we havent used the `Result` value. This warning comes from
a special annotation that `io::Result` has. Rust is trying to tell you that
you havent handled a possible error. The right way to suppress the error is
to actually write error handling. Luckily, if we want to crash if theres
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, wed do something else, but well save that for a future
project.