We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentc76e6f7 commit736f545Copy full SHA for 736f545
Doc/tutorial/controlflow.rst
@@ -253,8 +253,10 @@ at a more abstract level. The :keyword:`!pass` is silently ignored::
253
A:keyword:`match` statement takes an expression and compares its value to successive
254
patterns given as one or more case blocks. This is superficially
255
similar to a switch statement in C, Java or JavaScript (and many
256
-other languages), but it can also extract components (sequence elements or
257
-object attributes) from the value into variables.
+other languages), but it's more similar to pattern matching in
+languages like Rust or Haskell. Only the first pattern that matches
258
+gets executed and it can also extract components (sequence elements
259
+or object attributes) from the value into variables.
260
261
The simplest form compares a subject value against one or more literals::
262