Skip to content

Commit 6639065

Browse files
authored
Remove extra newline in documentation
This commit removes an unnecessary newline following the println examples. This change improves the formatting and readability of the document.
1 parent cfbfd64 commit 6639065

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/hello/print.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ fn main() {
3939
println!("Base 16 (hexadecimal): {:x}", 69420); // 10f2c
4040
println!("Base 16 (hexadecimal): {:X}", 69420); // 10F2C
4141
42-
4342
// You can right-justify text with a specified width. This will
4443
// output " 1". (Four white spaces and a "1", for a total width of 5.)
4544
println!("{number:>5}", number=1);
@@ -51,7 +50,6 @@ fn main() {
5150
// You can use named arguments in the format specifier by appending a `$`.
5251
println!("{number:0>width$}", number=1, width=5);
5352
54-
5553
// Rust even checks to make sure the correct number of arguments are used.
5654
println!("My name is {0}, {1} {0}", "Bond");
5755
// FIXME ^ Add the missing argument: "James"

0 commit comments

Comments
 (0)