diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-02-18 04:15:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-18 04:15:00 (GMT) |
commit | feb44550888eb4755efee11bf01daeb285e5b685 (patch) | |
tree | fd7d557b0c4f01f7bee5e88e8185cbb9ab60fef0 /Doc/tutorial | |
parent | 095ffe715e341690fd047917d83bebe0359c9d80 (diff) | |
download | cpython-feb44550888eb4755efee11bf01daeb285e5b685.zip cpython-feb44550888eb4755efee11bf01daeb285e5b685.tar.gz cpython-feb44550888eb4755efee11bf01daeb285e5b685.tar.bz2 |
docs: Link `match` statement in tutorial (GH-31396)
Add a link to the `match` statement from its section in the tutorial.
Automerge-Triggered-By: GH:Mariatta
(cherry picked from commit 35f55cc5c690a97853f1b544aac53574ab755b54)
Co-authored-by: William Andrea <william.j.andrea@gmail.com>
Diffstat (limited to 'Doc/tutorial')
-rw-r--r-- | Doc/tutorial/controlflow.rst | 2 |
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 |