Skip to content

Commit

Permalink
Quote literal tokens in standard format specifier grammar (GH-102902)
Browse files Browse the repository at this point in the history
  • Loading branch information
encukou authored Mar 31, 2023
1 parent 20c0f19 commit f6405a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/string.rst
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ non-empty format specification typically modifies the result.
The general form of a *standard format specifier* is:

.. productionlist:: format-spec
format_spec: [[`fill`]`align`][`sign`][z][#][0][`width`][`grouping_option`][.`precision`][`type`]
format_spec: [[`fill`]`align`][`sign`]["z"]["#"]["0"][`width`][`grouping_option`]["." `precision`][`type`]
fill: <any character>
align: "<" | ">" | "=" | "^"
sign: "+" | "-" | " "
Expand Down

0 comments on commit f6405a4

Please sign in to comment.