Skip to content

Commit 4ec49ce

Browse files
committed
Update the "Literal Patterns" section
1 parent 52a9739 commit 4ec49ce

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
@@ -858,7 +858,7 @@ A literal pattern corresponds to most
858858
: | "None"
859859
: | "True"
860860
: | "False"
861-
signed_number: ["-"] NUMBER
861+
signed_number: ["+" | "-"] NUMBER
862862

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

0 commit comments

Comments
 (0)