Rollup merge of #80980 - trevarj:patch-1, r=nagisa

Fixed incorrect doc comment

">" is right alignment, not left
This commit is contained in:
Mara Bos 2021-01-14 18:00:22 +00:00 committed by GitHub
commit d5e55cee99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");
/// ```