Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/hello/print.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ fn main() {
println!("Base 16 (hexadecimal): {:x}", 69420); // 10f2c
println!("Base 16 (hexadecimal): {:X}", 69420); // 10F2C


Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// You can right-justify text with a specified width. This will
// output " 1". (Four white spaces and a "1", for a total width of 5.)
println!("{number:>5}", number=1);
Expand All @@ -51,7 +50,6 @@ fn main() {
// You can use named arguments in the format specifier by appending a `$`.
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"
Expand Down