From abed900e54543d5d546245fa0b83e389938d4e77 Mon Sep 17 00:00:00 2001 From: Nathan Kerr Date: Thu, 1 Feb 2018 17:02:58 -0800 Subject: [PATCH] bpo-32720: Fixed incorrect definition for width and precision in format mini-language documentation --- Doc/library/string.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/string.rst b/Doc/library/string.rst index fc3d94bfbfca000..9b30f8fe1299908 100644 --- a/Doc/library/string.rst +++ b/Doc/library/string.rst @@ -304,9 +304,9 @@ The general form of a *standard format specifier* is: fill: align: "<" | ">" | "=" | "^" sign: "+" | "-" | " " - width: `integer` + width: `digit`+ grouping_option: "_" | "," - precision: `integer` + precision: `digit`+ type: "b" | "c" | "d" | "e" | "E" | "f" | "F" | "g" | "G" | "n" | "o" | "s" | "x" | "X" | "%" If a valid *align* value is specified, it can be preceded by a *fill*