summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorWilliam Andrea <william.j.andrea@gmail.com>2022-02-18 00:02:42 (GMT)
committerGitHub <noreply@github.com>2022-02-18 00:02:42 (GMT)
commit35f55cc5c690a97853f1b544aac53574ab755b54 (patch)
tree99f7245b3acb96793d52921d3370753c5c371d45 /Doc/tutorial
parentaa1ccbc76c2794cc78495c84c8325bf1d18a1cc7 (diff)
downloadcpython-35f55cc5c690a97853f1b544aac53574ab755b54.zip
cpython-35f55cc5c690a97853f1b544aac53574ab755b54.tar.gz
cpython-35f55cc5c690a97853f1b544aac53574ab755b54.tar.bz2
docs: Link `match` statement in tutorial (GH-31396)
Add a link to the `match` statement from its section in the tutorial. This should be backported to 3.10. [Initially submitted as #31395 but against the wrong branch. Thanks @Mariatta] Automerge-Triggered-By: GH:Mariatta
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/controlflow.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
index fad8746..589263e 100644
--- a/Doc/tutorial/controlflow.rst
+++ b/Doc/tutorial/controlflow.rst
@@ -250,7 +250,7 @@ at a more abstract level. The :keyword:`!pass` is silently ignored::
:keyword:`!match` Statements
============================
-A match statement takes an expression and compares its value to successive
+A :keyword:`match` statement takes an expression and compares its value to successive
patterns given as one or more case blocks. This is superficially
similar to a switch statement in C, Java or JavaScript (and many
other languages), but it can also extract components (sequence elements or