about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNathan West <Lucretiel@gmail.com>2020-05-21 23:45:43 -0400
committerNathan West <Lucretiel@gmail.com>2020-05-21 23:45:43 -0400
commit526dbd3d9718bf55a4d900bb68a9abff2be7019a (patch)
treef4cb0552688f118f3c7c8c82813b513a73a035a9
parent148c125b1bf20674e8d0c55c21b3433a6d465b07 (diff)
downloadrust-526dbd3d9718bf55a4d900bb68a9abff2be7019a.tar.gz
rust-526dbd3d9718bf55a4d900bb68a9abff2be7019a.zip
Clarified the documentation for Formatter::precision
-rw-r--r--src/libcore/fmt/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcore/fmt/mod.rs b/src/libcore/fmt/mod.rs
index 95411b525d0..7a8db024d4a 100644
--- a/src/libcore/fmt/mod.rs
+++ b/src/libcore/fmt/mod.rs
@@ -1611,7 +1611,8 @@ impl<'a> Formatter<'a> {
         self.width
     }
 
-    /// Optionally specified precision for numeric types.
+    /// Optionally specified precision for numeric types. Alternatively, the
+    /// maximum width for string types.
     ///
     /// # Examples
     ///