Skip to content

Commit 16d5bdd

Browse files
[3.14] gh-134449: fix grammar for precision_with_grouping in format description (GH-134608) (#135015)
gh-134449: fix grammar for `precision_with_grouping` in format description (GH-134608) This amends commit f39a07b. (cherry picked from commit 7828d52) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
1 parent 035c4d6 commit 16d5bdd

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)