From 502d012cabb7c6d4d134694c355d9ce0a1176f64 Mon Sep 17 00:00:00 2001 From: Chris Krycho Date: Fri, 19 Apr 2024 13:02:17 -0600 Subject: [PATCH] Ch. 2: intentionally use `{}` at first This supports the prose in the guessing game tutorial, which uses this as a way of teaching where you can do `{foo}` and where you cannot. --- listings/ch02-guessing-game-tutorial/listing-02-01/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/listings/ch02-guessing-game-tutorial/listing-02-01/src/main.rs b/listings/ch02-guessing-game-tutorial/listing-02-01/src/main.rs index d44e290d..b822b89f 100644 --- a/listings/ch02-guessing-game-tutorial/listing-02-01/src/main.rs +++ b/listings/ch02-guessing-game-tutorial/listing-02-01/src/main.rs @@ -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