From 526dbd3d9718bf55a4d900bb68a9abff2be7019a Mon Sep 17 00:00:00 2001 From: Nathan West Date: Thu, 21 May 2020 23:45:43 -0400 Subject: Clarified the documentation for Formatter::precision --- src/libcore/fmt/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libcore') 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 /// -- cgit 1.4.1-3-g733a5