Skip to content

Commit 697b20f

Browse files
authored
Fixed incorrect doc comment
">" is right alignment, not left
1 parent 9f3998b commit 697b20f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/fmt/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,7 @@ impl<'a> Formatter<'a> {
15551555
/// }
15561556
/// }
15571557
///
1558-
/// // We set alignment to the left with ">".
1558+
/// // We set alignment to the right with ">".
15591559
/// assert_eq!(&format!("{:G>3}", Foo), "GGG");
15601560
/// assert_eq!(&format!("{:t>6}", Foo), "tttttt");
15611561
/// ```

0 commit comments

Comments
 (0)