bpo-32720: Fixed the definition for width and precision in format mini-language doc (GH-5482) (GH-5525)

Changed the definition of width and precision from "integer" to "digit+" in format mini-language doc.
(cherry picked from commit 8b5fa289fd)

Co-authored-by: nathankerr96 <nathankerr96@gmail.com>
This commit is contained in:
Miss Islington (bot) 2018-02-03 22:26:16 -08:00 committed by Mariatta
parent c90a5dec03
commit 3bd749b212
1 changed files with 2 additions and 2 deletions

View File

@ -304,9 +304,9 @@ The general form of a *standard format specifier* is:
fill: <any character>
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*