Use println capture format more in chapter 14

This commit is contained in:
Carol (Nichols || Goulding) 2022-06-04 10:14:44 -04:00
parent 39f263f00c
commit a0aea4de2a
No known key found for this signature in database
GPG Key ID: E907EE5A736F87D4
2 changed files with 2 additions and 4 deletions

View File

@ -3,8 +3,7 @@ use add_one;
fn main() {
let num = 10;
println!(
"Hello, world! {} plus one is {}!",
num,
"Hello, world! {num} plus one is {}!",
add_one::add_one(num)
);
}

View File

@ -790,8 +790,7 @@ use add_one;
fn main() {
let num = 10;
println!(
"Hello, world! {} plus one is {}!",
num,
"Hello, world! {num} plus one is {}!",
add_one::add_one(num)
);
}