Skip to content

Commit 8b5fa28

Browse files
nathankerr96Mariatta
authored andcommitted
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.
1 parent c3d9508 commit 8b5fa28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/string.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,9 @@ The general form of a *standard format specifier* is:
304304
fill: <any character>
305305
align: "<" | ">" | "=" | "^"
306306
sign: "+" | "-" | " "
307-
width: `integer`
307+
width: `digit`+
308308
grouping_option: "_" | ","
309-
precision: `integer`
309+
precision: `digit`+
310310
type: "b" | "c" | "d" | "e" | "E" | "f" | "F" | "g" | "G" | "n" | "o" | "s" | "x" | "X" | "%"
311311

312312
If a valid *align* value is specified, it can be preceded by a *fill*

0 commit comments

Comments
 (0)