]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
docs: Link `match` statement in tutorial (GH-31396)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 18 Feb 2022 04:15:00 +0000 (20:15 -0800)
committerGitHub <noreply@github.com>
Fri, 18 Feb 2022 04:15:00 +0000 (23:15 -0500)
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>
Doc/tutorial/controlflow.rst

index fad8746014646c1d463ed68cd19662662534136e..589263edd3571e68d616da9b00d2079c134c908d 100644 (file)
@@ -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