Skip to content

Commit c6ee0b3

Browse files
miss-islingtonCBerJunskirpichev
authored
[3.12] gh-123580: Fix signed_number token in documentation (GH-123582) (GH-123624)
gh-123580: Fix `signed_number` token in documentation (GH-123582) (cherry picked from commit 9e079c2) Co-authored-by: CBerJun <[email protected]> Co-authored-by: Sergey B Kirpichev <[email protected]>
1 parent 252ed6d commit c6ee0b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/reference/compound_stmts.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ A literal pattern corresponds to most
841841
: | "None"
842842
: | "True"
843843
: | "False"
844-
: | `signed_number`: NUMBER | "-" NUMBER
844+
signed_number: ["-"] NUMBER
845845

846846
The rule ``strings`` and the token ``NUMBER`` are defined in the
847847
:doc:`standard Python grammar <./grammar>`. Triple-quoted strings are

0 commit comments

Comments
 (0)