We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1197d3b commit 7a11ea8Copy full SHA for 7a11ea8
listings/ch02-guessing-game-tutorial/listing-02-01/src/main.rs
@@ -25,7 +25,7 @@ fn main() {
25
// ANCHOR_END: expect
26
27
// ANCHOR: print_guess
28
- println!("You guessed: {guess}");
+ println!("You guessed: {}", guess);
29
// ANCHOR_END: print_guess
30
}
31
// ANCHOR: all
listings/ch02-guessing-game-tutorial/listing-02-02/src/main.rs
@@ -11,5 +11,5 @@ fn main() {
11
.read_line(&mut guess)
12
.expect("Failed to read line");
13
14
15
0 commit comments