Skip to content

Commit

Permalink
Rollup merge of #80980 - trevarj:patch-1, r=nagisa
Browse files Browse the repository at this point in the history
Fixed incorrect doc comment

">" is right alignment, not left
  • Loading branch information
m-ou-se authored Jan 14, 2021
2 parents 3fe37c3 + 697b20f commit d5e55ce
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 d5e55ce

Please sign in to comment.