From ada07e7ab6277c6824b4467a681bcf38689b6818 Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Sat, 24 May 2025 04:24:50 +0300 Subject: [PATCH] gh-134449: fix grammar for precision_with_grouping in format description This amends f39a07b. Thanks to Jonathan Poelen. --- Doc/library/string.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/string.rst b/Doc/library/string.rst index c4012483a52f73..23e15780075435 100644 --- a/Doc/library/string.rst +++ b/Doc/library/string.rst @@ -328,7 +328,7 @@ The general form of a *standard format specifier* is: sign: "+" | "-" | " " width_and_precision: [`width_with_grouping`][`precision_with_grouping`] width_with_grouping: [`width`][`grouping`] - precision_with_grouping: "." [`precision`][`grouping`] + precision_with_grouping: "." [`precision`][`grouping`] | "." `grouping` width: `~python-grammar:digit`+ precision: `~python-grammar:digit`+ grouping: "," | "_"