Skip to content

Commit 37a5e22

Browse files
Use double quotes over single quotes for match statement grammar (GH-24943)
1 parent b86ed8e commit 37a5e22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/reference/compound_stmts.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ The match statement is used for pattern matching. Syntax:
533533
match_stmt: 'match' `subject_expr` ":" NEWLINE INDENT `case_block`+ DEDENT
534534
subject_expr: `star_named_expression` "," `star_named_expressions`?
535535
: | `named_expression`
536-
case_block: 'case' `patterns` [`guard`] ':' `block`
536+
case_block: 'case' `patterns` [`guard`] ":" `block`
537537

538538
.. note::
539539
This section uses single quotes to denote
@@ -861,7 +861,7 @@ emphasize the intended grouping. Otherwise, it has no additional syntax.
861861
Syntax:
862862

863863
.. productionlist:: python-grammar
864-
group_pattern: '(' `pattern` ')'
864+
group_pattern: "(" `pattern` ")"
865865

866866
In simple terms ``(P)`` has the same effect as ``P``.
867867

0 commit comments

Comments
 (0)