From 526dbd3d9718bf55a4d900bb68a9abff2be7019a Mon Sep 17 00:00:00 2001 From: Nathan West Date: Thu, 21 May 2020 23:45:43 -0400 Subject: [PATCH] Clarified the documentation for Formatter::precision --- src/libcore/fmt/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libcore/fmt/mod.rs b/src/libcore/fmt/mod.rs index 95411b525d0db..7a8db024d4a74 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 ///