Skip to content

Commit 9e079c2

Browse files
CBerJunskirpichev
andauthored
gh-123580: Fix signed_number token in documentation (GH-123582)
Co-authored-by: Sergey B Kirpichev <[email protected]>
1 parent 9684f40 commit 9e079c2

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)