We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dc630d0 + fa3fd81 commit 8a2666dCopy full SHA for 8a2666d
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