mirror of
https://github.com/python/cpython.git
synced 2026-02-10 11:51:07 +00:00
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 35f55cc5c6)
Co-authored-by: William Andrea <william.j.andrea@gmail.com>
This commit is contained in:
parent
095ffe715e
commit
feb4455088
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue