Closed
Description
https://doc.rust-lang.org/book/guessing-game.html contains statements like
If we leave off calling these two methods, our program will compile, but we’ll get a warning:
Luckily, if we just want to crash if there’s a problem, we can use these two little methods.
The book used to use .ok().expect(...)
, but has switched to .expect(...)
, from two methods for error handling/crashing to one.
Metadata
Metadata
Assignees
Labels
No labels