Fixed incorrect doc comment

">" is right alignment, not left
This commit is contained in:
trevor arjeski 2021-01-13 13:49:46 +03:00 committed by GitHub
parent 9f3998b4aa
commit 697b20ff08
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");
/// ```