Skip to content

Commit

Permalink
docs: Link match statement in tutorial (pythonGH-31396)
Browse files Browse the repository at this point in the history
Add a link to the `match` statement from its section in the tutorial.

This should be backported to 3.10.

[Initially submitted as python#31395 but against the wrong branch. Thanks @Mariatta]

Automerge-Triggered-By: GH:Mariatta
  • Loading branch information
wjandrea authored Feb 18, 2022
1 parent aa1ccbc commit 35f55cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/tutorial/controlflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 35f55cc

Please sign in to comment.