[Python-checkins] Fix class pattern docs to refer to class patterns (GH-28849)

Fidget-Spinner webhook-mailer at python.org
Sun Oct 10 10:13:00 EDT 2021


https://github.com/python/cpython/commit/0bcc5ade9bff086a0b24d71307fae0a891f4efd2
commit: 0bcc5ade9bff086a0b24d71307fae0a891f4efd2
branch: main
author: Christophe Nanteuil <35002064+christopheNan at users.noreply.github.com>
committer: Fidget-Spinner <28750310+Fidget-Spinner at users.noreply.github.com>
date: 2021-10-10T22:12:51+08:00
summary:

Fix class pattern docs to refer to class patterns (GH-28849)

files:
M Doc/reference/compound_stmts.rst

diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
index 5936cdf5ffc30..3011a168ede42 100644
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -1017,7 +1017,7 @@ A class pattern represents a class and its positional and keyword arguments
 
 The same keyword should not be repeated in class patterns.
 
-The following is the logical flow for matching a mapping pattern against a
+The following is the logical flow for matching a class pattern against a
 subject value:
 
 #. If ``name_or_attr`` is not an instance of the builtin :class:`type` , raise



More information about the Python-checkins mailing list