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

Skip to content

Commit 43b14dd

Browse files
skirpichevmiss-islington
authored andcommitted
pythongh-134449: fix grammar for precision_with_grouping in format description (pythonGH-134608)
This amends commit f39a07b. (cherry picked from commit 7828d52) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
1 parent 035c4d6 commit 43b14dd

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