We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5020979 + 6639065 commit ee68b7cCopy full SHA for ee68b7c
src/hello/print.md
@@ -39,7 +39,6 @@ fn main() {
39
println!("Base 16 (hexadecimal): {:x}", 69420); // 10f2c
40
println!("Base 16 (hexadecimal): {:X}", 69420); // 10F2C
41
42
-
43
// You can right-justify text with a specified width. This will
44
// output " 1". (Four white spaces and a "1", for a total width of 5.)
45
println!("{number:>5}", number=1);
@@ -51,7 +50,6 @@ fn main() {
51
50
// You can use named arguments in the format specifier by appending a `$`.
52
println!("{number:0>width$}", number=1, width=5);
53
54
55
// Rust even checks to make sure the correct number of arguments are used.
56
println!("My name is {0}, {1} {0}", "Bond");
57
// FIXME ^ Add the missing argument: "James"
0 commit comments