]> granicus.if.org Git - python/commitdiff
bpo-32720: Fixed the definition for width and precision in format mini-language doc...
authornathankerr96 <nathankerr96@gmail.com>
Sun, 4 Feb 2018 05:42:08 +0000 (21:42 -0800)
committerMariatta <Mariatta@users.noreply.github.com>
Sun, 4 Feb 2018 05:42:08 +0000 (00:42 -0500)
Changed the definition of width and precision from "integer" to "digit+" in format mini-language doc.

Doc/library/string.rst

index fc3d94bfbfca00071914fadde717b871415b7aa9..9b30f8fe12999085bb90535627af8771fea3a656 100644 (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*