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
io::stdin().read_line(&mut guess)
.expect("Failed to read line");
Then running rustfmt main.rs re-formats the code:
io::stdin()
.read_line(&mut guess)
.expect("Failed to read line");
This is just the first one that I came across.
What needs to be fixed?
The code sample seems to be formatted incorrectly according to rustfmt. For new learners, it would be nice to present correctly formatted code from the outset.
Suggested Improvement
If this is something that needs to be done, I'd be happy to run each sample through rustfmt and make the suggested changes. If not, no worries and thanks for the great resource!
The text was updated successfully, but these errors were encountered:
Content Bug Report
Page(s) Affected
One example:
The code for setting the guess:
Then running
rustfmt main.rs
re-formats the code:This is just the first one that I came across.
What needs to be fixed?
The code sample seems to be formatted incorrectly according to
rustfmt
. For new learners, it would be nice to present correctly formatted code from the outset.Suggested Improvement
If this is something that needs to be done, I'd be happy to run each sample through
rustfmt
and make the suggested changes. If not, no worries and thanks for the great resource!The text was updated successfully, but these errors were encountered: