diff --git a/Doc/library/string.rst b/Doc/library/string.rst index f2f3ab9eefdd50..ba472b4c45aeee 100644 --- a/Doc/library/string.rst +++ b/Doc/library/string.rst @@ -327,8 +327,9 @@ The general form of a *standard format specifier* is: width_and_precision: [`width_with_grouping`][`precision_with_grouping`] width_with_grouping: [`width`][`grouping`] precision_with_grouping: "." [`precision`][`grouping`] - width: `~python-grammar:digit`+ - precision: `~python-grammar:digit`+ + width: "0" | `digits` + precision: "0" | `digits` + digits: `~python-grammar:nonzerodigit` `~python-grammar:digit`* grouping: "," | "_" type: "b" | "c" | "d" | "e" | "E" | "f" | "F" | "g" : | "G" | "n" | "o" | "s" | "x" | "X" | "%"