diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-08-25 09:43:07 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-08-25 09:43:07 -0400 |
| commit | c15d0cf270dbc18b077886679f752e0f6ad7966b (patch) | |
| tree | c7885fd0177eafac003d1bad4d273737abdd33c3 | |
| parent | f45d2b56e27a5266ecae7d6283368ce9e1cf238e (diff) | |
| parent | 82bed0a760da52b9d00d2a30661a44616f52d176 (diff) | |
| download | rust-c15d0cf270dbc18b077886679f752e0f6ad7966b.tar.gz rust-c15d0cf270dbc18b077886679f752e0f6ad7966b.zip | |
Rollup merge of #27978 - mgrabovsky:doc-fix, r=steveklabnik
| -rw-r--r-- | src/doc/trpl/error-handling.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/trpl/error-handling.md b/src/doc/trpl/error-handling.md index 8dd5a3650ef..518e65f35c0 100644 --- a/src/doc/trpl/error-handling.md +++ b/src/doc/trpl/error-handling.md @@ -208,8 +208,8 @@ Because these kinds of situations are relatively rare, use panics sparingly. In certain circumstances, even though a function may fail, we may want to treat it as a panic instead. For example, `io::stdin().read_line(&mut buffer)` returns -a `Result<usize>`, when there is an error reading the line. This allows us to -handle and possibly recover from error. +a `Result<usize>`, which can indicate an error if one occurs when reading the line. +This allows us to handle and possibly recover from errors. If we don't want to handle this error, and would rather just abort the program, we can use the `unwrap()` method: |
