Closed
Description
This is how you generally move from ‘crash on error’ to ‘actually handle the returned by parse() is an enum just like Ordering, but in this case, each variant has some data associated with it: Ok is a success, and Err is a failure.
From https://doc.rust-lang.org/book/guessing-game.html#looping (emphasis mine).
Metadata
Metadata
Assignees
Labels
No labels