diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-02-04 06:26:16 (GMT) |
---|---|---|
committer | Mariatta <Mariatta@users.noreply.github.com> | 2018-02-04 06:26:16 (GMT) |
commit | 3bd749b2122c17b835dc438cdaef63bfdfd61344 (patch) | |
tree | cc9c8ebe8862d9a230177296a0292212587cbc5b | |
parent | c90a5dec03fbef3a26479c800d5d6d15c44d5afb (diff) | |
download | cpython-3bd749b2122c17b835dc438cdaef63bfdfd61344.zip cpython-3bd749b2122c17b835dc438cdaef63bfdfd61344.tar.gz cpython-3bd749b2122c17b835dc438cdaef63bfdfd61344.tar.bz2 |
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 8b5fa289fdb04b6b919cf95fa99246aa872e47a8)
Co-authored-by: nathankerr96 <nathankerr96@gmail.com>
-rw-r--r-- | Doc/library/string.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst index 7a9fcc3..dbafb48 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: <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* |