]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-123580: Fix `signed_number` token in documentation (GH-123582)
authorCBerJun <121291537+CBerJun@users.noreply.github.com>
Tue, 3 Sep 2024 08:01:26 +0000 (04:01 -0400)
committerGitHub <noreply@github.com>
Tue, 3 Sep 2024 08:01:26 +0000 (10:01 +0200)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Doc/reference/compound_stmts.rst

index 8181b9759517f682f10c0f430cf7202459cf384a..46ee3a174f3d0f8beec2329d82cb6c79b5ad87a4 100644 (file)
@@ -841,7 +841,7 @@ A literal pattern corresponds to most
                   : | "None"
                   : | "True"
                   : | "False"
-                  : | `signed_number`: NUMBER | "-" NUMBER
+   signed_number: ["-"] NUMBER
 
 The rule ``strings`` and the token ``NUMBER`` are defined in the
 :doc:`standard Python grammar <./grammar>`.  Triple-quoted strings are