Skip to content

Commit 0bcc5ad

Browse files
Fix class pattern docs to refer to class patterns (GH-28849)
1 parent 532403e commit 0bcc5ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/reference/compound_stmts.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ A class pattern represents a class and its positional and keyword arguments
10171017

10181018
The same keyword should not be repeated in class patterns.
10191019

1020-
The following is the logical flow for matching a mapping pattern against a
1020+
The following is the logical flow for matching a class pattern against a
10211021
subject value:
10221022

10231023
#. If ``name_or_attr`` is not an instance of the builtin :class:`type` , raise

0 commit comments

Comments
 (0)