about summary refs log tree commit diff
diff options
context:
space:
mode:
authorIsaac Ge <acgtyrant@gmail.com>2015-05-09 20:36:12 +0800
committeracgtyrant <acgtyrant@gmail.com>2015-05-10 10:20:47 +0800
commitfa3fd813d644795063167440e6d8a22cdca44453 (patch)
tree1dbea1eef10377d0588cb7ae513a3c154eb36e9e
parent3906edf41e8faa0610daea954ffbda39841fbc0d (diff)
downloadrust-fa3fd813d644795063167440e6d8a22cdca44453.tar.gz
rust-fa3fd813d644795063167440e6d8a22cdca44453.zip
Update error-handling.md
Fix two typos while `io::stdin().read_line()` returns `Result` actually

Signed-off-by: acgtyrant <acgtyrant@gmail.com>
-rw-r--r--src/doc/trpl/error-handling.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/trpl/error-handling.md b/src/doc/trpl/error-handling.md
index e4809214bd4..95b39a66063 100644
--- a/src/doc/trpl/error-handling.md
+++ b/src/doc/trpl/error-handling.md
@@ -214,7 +214,7 @@ we can use the `unwrap()` method:
 io::stdin().read_line(&mut buffer).unwrap();
 ```
 
-`unwrap()` will `panic!` if the `Option` is `None`. This basically says "Give
+`unwrap()` will `panic!` if the `Result` is `Err`. This basically says "Give
 me the value, and if something goes wrong, just crash." This is less reliable
 than matching the error and attempting to recover, but is also significantly
 shorter. Sometimes, just crashing is appropriate.