mirror of https://github.com/rust-lang/book
Use println capture format more in chapter 14
This commit is contained in:
parent
39f263f00c
commit
a0aea4de2a
|
@ -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)
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue