We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
case_block
1 parent a58c24d commit 446c91eCopy full SHA for 446c91e
1 file changed
Doc/reference/compound_stmts.rst
@@ -613,7 +613,7 @@ The match statement is used for pattern matching. Syntax:
613
match_stmt: 'match' `subject_expr` ":" NEWLINE INDENT `case_block`+ DEDENT
614
subject_expr: `flexible_expression` "," [`flexible_expression_list` [',']]
615
: | `assignment_expression`
616
- case_block: 'case' `patterns` [`guard`] ":" `!block`
+ case_block: 'case' `patterns` [`guard`] ":" `suite`
617
618
.. note::
619
This section uses single quotes to denote
0 commit comments