Skip to content

Commit

Permalink
Add the missing argument: "James"
Browse files Browse the repository at this point in the history
  • Loading branch information
iMusinsky committed Jan 16, 2024
1 parent ddf5cb0 commit e722ccd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hello/print.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ fn main() {
println!("{number:0>width$}", number=1, width=5);
// Rust even checks to make sure the correct number of arguments are used.
println!("My name is {0}, {1} {0}", "Bond");
// FIXME ^ Add the missing argument: "James"
println!("My name is {0}, {1} {0}", "Bond", "James");
// Only types that implement fmt::Display can be formatted with `{}`. User-
// defined types do not implement fmt::Display by default.
Expand Down

0 comments on commit e722ccd

Please sign in to comment.