We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Brand new to Rust so I apologize if this is not the right place for something like this. I just finished "The Guessing Game" and noticed a small typo:
We can do that with three more lines. Here’s our new program:
The new three lines:
let guess: u32 = guess.trim().parse() .expect("Please type a number!");
It appears the book was updated at some point to only contain two lines.
Similarly. in the following section. this could be a typo or possibly just confusing:
io::stdin().read_line(&mut guess).expect("failed to read line");
If we leave off calling these two methods, our program will compile, but we’ll get a warning:
The two methods could refer to .expect and panic!.
The text was updated successfully, but these errors were encountered:
Nope, this is a typo. There used to be calls to ok() in there, and they were removed, but the English wasn't.
ok()
Sorry, something went wrong.
Fix number of methods in guessing game
24c928b
This code was refactored, but the words were not Fixes rust-lang#31284
Rollup merge of rust-lang#31294 - steveklabnik:gh31284, r=alexcrichton
ee7670e
No branches or pull requests
Brand new to Rust so I apologize if this is not the right place for something like this. I just finished "The Guessing Game" and noticed a small typo:
We can do that with three more lines. Here’s our new program:
The new three lines:
It appears the book was updated at some point to only contain two lines.
Similarly. in the following section. this could be a typo or possibly just confusing:
If we leave off calling these two methods, our program will compile, but we’ll get a warning:
The two methods could refer to .expect and panic!.
The text was updated successfully, but these errors were encountered: