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.

Automerge-Triggered-By: GH:Mariatta
(cherry picked from commit 35f55cc)

Co-authored-by: William Andrea <william.j.andrea@gmail.com>
  • Loading branch information
miss-islington and wjandrea authored Feb 18, 2022
1 parent 095ffe7 commit feb4455
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 feb4455

Please sign in to comment.