We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3906edf commit fa3fd81Copy full SHA for fa3fd81
src/doc/trpl/error-handling.md
@@ -214,7 +214,7 @@ we can use the `unwrap()` method:
214
io::stdin().read_line(&mut buffer).unwrap();
215
```
216
217
-`unwrap()` will `panic!` if the `Option` is `None`. This basically says "Give
+`unwrap()` will `panic!` if the `Result` is `Err`. This basically says "Give
218
me the value, and if something goes wrong, just crash." This is less reliable
219
than matching the error and attempting to recover, but is also significantly
220
shorter. Sometimes, just crashing is appropriate.
0 commit comments