You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The guessing game section of the Rust book has the line:
let input_num:Result<u32,_> = input.parse();
but multiple places nearby refer to unwrapping it with .ok() to produce an Option, which is never actually done in the code examples. It seems someone updated the code to directly use the Result<u32,_> and didn't update the surrounding text and the type error message.
This should be an easy fix but at the moment I'm a Rust newbie and I don't have a rust compiler to determine the correct type and error message.
The text was updated successfully, but these errors were encountered:
The guessing game section of the Rust book has the line:
but multiple places nearby refer to unwrapping it with
.ok()
to produce anOption
, which is never actually done in the code examples. It seems someone updated the code to directly use theResult<u32,_>
and didn't update the surrounding text and the type error message.This should be an easy fix but at the moment I'm a Rust newbie and I don't have a rust compiler to determine the correct type and error message.
The text was updated successfully, but these errors were encountered: