We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 96dbd8a + 6a6e9a9 commit bd4c0b5Copy full SHA for bd4c0b5
src/doc/book/guessing-game.md
@@ -908,6 +908,7 @@ let guess: u32 = match guess.trim().parse() {
908
```
909
910
This is how you generally move from ‘crash on error’ to ‘actually handle the
911
+error’, by switching from `expect()` to a `match` statement. The `Result`
912
returned by `parse()` is an `enum` like `Ordering`, but in this case, each
913
variant has some data associated with it: `Ok` is a success, and `Err` is a
914
failure. Each contains more information: the successfully parsed integer, or an
0 commit comments