diff options
author | Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> | 2021-04-12 17:03:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-12 17:03:20 (GMT) |
commit | 37a5e220234dd4afb8f97b810393e3d58db674a1 (patch) | |
tree | 491273d5f9581c3c361a08df2bb3c1b788d202a0 /Doc/reference | |
parent | b86ed8e3bb41ede77eeab4a8bb4e2b91a8065283 (diff) | |
download | cpython-37a5e220234dd4afb8f97b810393e3d58db674a1.zip cpython-37a5e220234dd4afb8f97b810393e3d58db674a1.tar.gz cpython-37a5e220234dd4afb8f97b810393e3d58db674a1.tar.bz2 |
Use double quotes over single quotes for match statement grammar (GH-24943)
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/compound_stmts.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index 2da9068..8e68081 100644 --- a/Doc/reference/compound_stmts.rst +++ b/Doc/reference/compound_stmts.rst @@ -533,7 +533,7 @@ The match statement is used for pattern matching. Syntax: match_stmt: 'match' `subject_expr` ":" NEWLINE INDENT `case_block`+ DEDENT subject_expr: `star_named_expression` "," `star_named_expressions`? : | `named_expression` - case_block: 'case' `patterns` [`guard`] ':' `block` + case_block: 'case' `patterns` [`guard`] ":" `block` .. note:: This section uses single quotes to denote @@ -861,7 +861,7 @@ emphasize the intended grouping. Otherwise, it has no additional syntax. Syntax: .. productionlist:: python-grammar - group_pattern: '(' `pattern` ')' + group_pattern: "(" `pattern` ")" In simple terms ``(P)`` has the same effect as ``P``. |