diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index 1acfc98f55892ea8a0f5590d683c23b28f9dcce2_RG9jL3JlZmVyZW5jZS9jb21wb3VuZF9zdG10cy5yc3Q=..e606db018a9acf0b40a374007ccf9aae5a1c7c85_RG9jL3JlZmVyZW5jZS9jb21wb3VuZF9zdG10cy5yc3Q= 100644 --- a/Doc/reference/compound_stmts.rst +++ b/Doc/reference/compound_stmts.rst @@ -533,7 +533,7 @@ 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 @@ Syntax: .. productionlist:: python-grammar - group_pattern: '(' `pattern` ')' + group_pattern: "(" `pattern` ")" In simple terms ``(P)`` has the same effect as ``P``.