]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/book/listings/ch18-patterns-and-matching/listing-18-01/src/main.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / doc / book / listings / ch18-patterns-and-matching / listing-18-01 / src / main.rs
index d28c369f56b3a9c01c2f7172553c3de99f1b529b..fc87768fb3c85a187c94eef5ef0191ebbbfacc70 100644 (file)
@@ -4,7 +4,7 @@ fn main() {
     let age: Result<u8, _> = "34".parse();
 
     if let Some(color) = favorite_color {
-        println!("Using your favorite color, {}, as the background", color);
+        println!("Using your favorite color, {color}, as the background");
     } else if is_tuesday {
         println!("Tuesday is green day!");
     } else if let Ok(age) = age {