Skip to content

Commit

Permalink
guessing game consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Feb 6, 2022
1 parent 1197d3b commit 7a11ea8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn main() {
// ANCHOR_END: expect

// ANCHOR: print_guess
println!("You guessed: {guess}");
println!("You guessed: {}", guess);
// ANCHOR_END: print_guess
}
// ANCHOR: all
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ fn main() {
.read_line(&mut guess)
.expect("Failed to read line");

println!("You guessed: {guess}");
println!("You guessed: {}", guess);
}

0 comments on commit 7a11ea8

Please sign in to comment.