Skip to content

Commit

Permalink
Fixed incorrect doc comment
Browse files Browse the repository at this point in the history
">" is right alignment, not left
  • Loading branch information
trevarj authored Jan 13, 2021
1 parent 9f3998b commit 697b20f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/fmt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,7 @@ impl<'a> Formatter<'a> {
/// }
/// }
///
/// // We set alignment to the left with ">".
/// // We set alignment to the right with ">".
/// assert_eq!(&format!("{:G>3}", Foo), "GGG");
/// assert_eq!(&format!("{:t>6}", Foo), "tttttt");
/// ```
Expand Down

0 comments on commit 697b20f

Please sign in to comment.