Skip to content

Commit

Permalink
Merge pull request rust-lang#1109 from bmusin/patch-5
Browse files Browse the repository at this point in the history
refine wording
  • Loading branch information
carols10cents authored Jan 12, 2018
2 parents af9784a + 1d2c613 commit 42d3a74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion first-edition/src/error-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ 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
function and returns the error (by converting it to a string).
function and returns the error (by converting it to string).

Isn't this a step backwards though? Previously, we said that the key to
ergonomic error handling is reducing explicit case analysis, yet we've reverted
Expand Down

0 comments on commit 42d3a74

Please sign in to comment.