]> granicus.if.org Git - python/commitdiff
bpo-32720: Fixed the definition for width and precision in format mini-language doc...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 4 Feb 2018 06:26:16 +0000 (22:26 -0800)
committerMariatta <Mariatta@users.noreply.github.com>
Sun, 4 Feb 2018 06:26:16 +0000 (01:26 -0500)
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 <nathankerr96@gmail.com>
Doc/library/string.rst

index 7a9fcc38bbded80ab5c6750e6f44317c4e44ee95..dbafb48a80546a1ca683724f8f595358e6766d4b 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*