diff options
| author | bors <bors@rust-lang.org> | 2015-12-27 19:50:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-12-27 19:50:09 +0000 |
| commit | ded10f43137261faeda8b29f443985266cc8c2a6 (patch) | |
| tree | 8e43363b7e4b20a928bc0eee646024eecb2b396f | |
| parent | 2ced1499254008e89166432a59470d7809871ad8 (diff) | |
| parent | 68c0f024cf1d5e0403c859465474ce6304d28314 (diff) | |
| download | rust-ded10f43137261faeda8b29f443985266cc8c2a6.tar.gz rust-ded10f43137261faeda8b29f443985266cc8c2a6.zip | |
Auto merge of #30575 - jswalden:error-handling-typo, r=apasel422
Didn't build/test the change, but if that one-character fix isn't correct, I'll eat my hat. :-) Found this reading the book over the last week or two since Mozlando -- much enjoying the book so far.
| -rw-r--r-- | src/doc/book/error-handling.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/book/error-handling.md b/src/doc/book/error-handling.md index de41a8fe03b..3479230f774 100644 --- a/src/doc/book/error-handling.md +++ b/src/doc/book/error-handling.md @@ -887,7 +887,7 @@ fn main() { } ``` -Reasonable people can disagree over whether this code is better that the code +Reasonable people can disagree over whether this code is better than the code that uses combinators, but if you aren't familiar with the combinator approach, this code looks simpler to read to me. It uses explicit case analysis with `match` and `if let`. If an error occurs, it simply stops executing the |
