]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix error in documentation for ast.match_case (GH-24807)
authorAdrian Freund <git@freundtech.com>
Wed, 10 Mar 2021 15:58:31 +0000 (16:58 +0100)
committerGitHub <noreply@github.com>
Wed, 10 Mar 2021 15:58:31 +0000 (07:58 -0800)
Doc/library/ast.rst

index b5e1be826911575b2a89c7c0b48a62714d340ea7..4bc9906e8568a906be5f0dc602e0c0e3762de4c4 100644 (file)
@@ -1252,7 +1252,7 @@ Control flow
    :class:`match_case` nodes with the different cases.
 
 
-.. class:: match_case(context_expr, optional_vars)
+.. class:: match_case(pattern, guard, body)
 
     A single case pattern in a ``match`` statement. ``pattern`` contains the
     match pattern that will be used to match the subject against. Notice that