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.
This commit is contained in:
commit
ded10f4313
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue