summaryrefslogtreecommitdiff
path: root/Doc/library/string.rst
diff options
context:
space:
mode:
authornathankerr96 <nathankerr96@gmail.com>2018-02-03 21:42:08 -0800
committerMariatta <Mariatta@users.noreply.github.com>2018-02-04 00:42:08 -0500
commit8b5fa289fdb04b6b919cf95fa99246aa872e47a8 (patch)
tree6510d500742727b9b4169c6a7ffa5c4305d0a5ad /Doc/library/string.rst
parentc3d9508ff22ece9a96892b628dd5813e2fb0cd80 (diff)
downloadcpython-git-8b5fa289fdb04b6b919cf95fa99246aa872e47a8.tar.gz
bpo-32720: Fixed the definition for width and precision in format mini-language doc (GH-5482)
Changed the definition of width and precision from "integer" to "digit+" in format mini-language doc.
Diffstat (limited to 'Doc/library/string.rst')
-rw-r--r--Doc/library/string.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index fc3d94bfbf..9b30f8fe12 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*