about summary refs log tree commit diff
diff options
context:
space:
mode:
authortrevor arjeski <tmarjeski@gmail.com>2021-01-13 13:49:46 +0300
committerGitHub <noreply@github.com>2021-01-13 13:49:46 +0300
commit697b20ff08f98fff289ef9a861ac9dea5e7f9314 (patch)
treec25407e32f6ccce47a225842906e245024b62657
parent9f3998b4aa9d0eea3249fdd48b8b719185673d16 (diff)
downloadrust-697b20ff08f98fff289ef9a861ac9dea5e7f9314.tar.gz
rust-697b20ff08f98fff289ef9a861ac9dea5e7f9314.zip
Fixed incorrect doc comment
">" is right alignment, not left
-rw-r--r--library/core/src/fmt/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/fmt/mod.rs b/library/core/src/fmt/mod.rs
index 0c65c1c9eb7..7e817edeec1 100644
--- a/library/core/src/fmt/mod.rs
+++ b/library/core/src/fmt/mod.rs
@@ -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");
     /// ```