8000 gh-134449: fix grammar for `precision_with_grouping` in format descri… · python/cpython@7828d52 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7828d52

Browse files
authored
gh-134449: fix grammar for precision_with_grouping in format description (#134608)
This amends commit f39a07b.
1 parent ee65ebd commit 7828d52

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
@@ -328,7 +328,7 @@ The general form of a *standard format specifier* is:
328328
sign: "+" | "-" | " "
329329
width_and_precision: [`width_with_grouping`][`precision_with_grouping`]
330330
width_with_grouping: [`width`][`grouping`]
331-
precision_with_grouping: "." [`precision`][`grouping`]
331+
precision_with_grouping: "." [`precision`][`grouping`] | "." `grouping`
332332
width: `~python-grammar:digit`+
333333
precision: `~python-grammar:digit`+
334334
grouping: "," | "_"

0 commit comments

Comments
 (0)
0