Skip to content

Commit

Permalink
Rollup merge of rust-lang#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
JohnTitor committed Jan 14, 2021
2 parents fd012c2 + 697b20f commit 75c6f6f
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 75c6f6f

Please sign in to comment.