]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
docs: Link `match` statement in tutorial (GH-31396)
authorWilliam Andrea <william.j.andrea@gmail.com>
Fri, 18 Feb 2022 00:02:42 +0000 (19:02 -0500)
committerGitHub <noreply@github.com>
Fri, 18 Feb 2022 00:02:42 +0000 (16:02 -0800)
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
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