summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorAlex Waygood <Alex.Waygood@Gmail.com>2023-03-13 14:31:25 (GMT)
committerGitHub <noreply@github.com>2023-03-13 14:31:25 (GMT)
commit83ccaf2c09b9217622818f63a841892ce6e03508 (patch)
treeea82ead498fcfe8569570a414c1d0c11695ce6b7 /Doc/reference
parentd4f8fafd2df3a6a1828c96f9347a14595ec438d1 (diff)
downloadcpython-83ccaf2c09b9217622818f63a841892ce6e03508.zip
cpython-83ccaf2c09b9217622818f63a841892ce6e03508.tar.gz
cpython-83ccaf2c09b9217622818f63a841892ce6e03508.tar.bz2
[3.10] Fix duplicated words in the docs (#102645)
(cherry-picked from commit f6ca71a) With grep utility found some duplicated words Co-authored-by: Виталий Дмитриев <vitaldmit@bk.ru>
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/compound_stmts.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
index 20c85a9..8154147 100644
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -729,7 +729,7 @@ keyword against a subject. Syntax:
If the OR pattern fails, the AS pattern fails. Otherwise, the AS pattern binds
the subject to the name on the right of the as keyword and succeeds.
-``capture_pattern`` cannot be a a ``_``.
+``capture_pattern`` cannot be a ``_``.
In simple terms ``P as NAME`` will match with ``P``, and on success it will
set ``NAME = <subject>``.