]> git.lizzy.rs Git - rust.git/commitdiff
Clarified the documentation for Formatter::precision
authorNathan West <Lucretiel@gmail.com>
Fri, 22 May 2020 03:45:43 +0000 (23:45 -0400)
committerNathan West <Lucretiel@gmail.com>
Fri, 22 May 2020 03:45:43 +0000 (23:45 -0400)
src/libcore/fmt/mod.rs

index 95411b525d0db3934f1dd40d703be0c505455f83..7a8db024d4a748c5c47370cb890fa2acc2407cd7 100644 (file)
@@ -1611,7 +1611,8 @@ pub fn width(&self) -> Option<usize> {
         self.width
     }
 
-    /// Optionally specified precision for numeric types.
+    /// Optionally specified precision for numeric types. Alternatively, the
+    /// maximum width for string types.
     ///
     /// # Examples
     ///