Error chain description to match the code

This commit is contained in:
David Tolnay 2017-05-03 21:40:09 -07:00
parent e728582e73
commit 286c7d007f
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -71,10 +71,10 @@ fn main() {
}
```
This is using the `error_chain!` macro to define a custom `Error`
and `Result` type, along with an automatic conversion from
the common `::std::io::Error` type. The automatic conversion
makes the `?` operator work .
This is using the `error_chain!` macro to define a custom `Error` and
`Result` type, along with an automatic conversion from two standard
library error types. The automatic conversion makes the `?` operator
work.
For more background on error handling in Rust, read [this page of the
Rust book][error-docs] and [this blog post][error-blog].