diff --git a/listings/ch19-patterns-and-matching/listing-19-29/src/main.rs b/listings/ch19-patterns-and-matching/listing-19-29/src/main.rs index 325af305..3c5551e5 100644 --- a/listings/ch19-patterns-and-matching/listing-19-29/src/main.rs +++ b/listings/ch19-patterns-and-matching/listing-19-29/src/main.rs @@ -7,8 +7,10 @@ fn main() { let msg = Message::Hello { id: 5 }; match msg { - Message::Hello { id: id @ 3..=7 } => { - println!("Found an id in range: {id}") + Message::Hello { + id: id_variable @ 3..=7, + } => { + println!("Found an id in range: {id_variable}") } Message::Hello { id: 10..=12 } => { println!("Found an id in another range")