let input = reader.read_line().ok().expect("Failed to read line");
I'm probably too used to thinking in Python. Or maybe I'm just dyslexic and I read "expect()" as "except()".
Either way, your comment prompted me to dig into it further and find out how Rust actually handles errors. So, thanks!
I'm probably too used to thinking in Python. Or maybe I'm just dyslexic and I read "expect()" as "except()".
Either way, your comment prompted me to dig into it further and find out how Rust actually handles errors. So, thanks!