Skip to content

Commit f014bad

Browse files
committed
Fix precision_with_grouping in formatting mini-language
The 'type' field can't immediately follow to the dot. This amends f39a07b.
1 parent c55c020 commit f014bad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/string.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ The general form of a *standard format specifier* is:
326326
sign: "+" | "-" | " "
327327
width_and_precision: [`width_with_grouping`][`precision_with_grouping`]
328328
width_with_grouping: [`width`][`grouping`]
329-
precision_with_grouping: "." [`precision`][`grouping`]
329+
precision_with_grouping: "." (`precision` [`grouping`] | `grouping`)
330330
width: `~python-grammar:digit`+
331331
precision: `~python-grammar:digit`+
332332
grouping: "," | "_"

0 commit comments

Comments
 (0)