From 133514e9dcea9c8cc9d9dd459b1a7fb502747d7e Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Sat, 3 Feb 2018 22:03:21 -0800 Subject: [PATCH] bpo-32720: Fixed the definition for width and precision in format mini-language doc (GH-5482) (GH-5524) Changed the definition of width and precision from "integer" to "digit+" in format mini-language doc. (cherry picked from commit 8b5fa289fdb04b6b919cf95fa99246aa872e47a8) Co-authored-by: nathankerr96 --- 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 fc3d94bfbfc..9b30f8fe129 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*