File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -253,8 +253,10 @@ at a more abstract level. The :keyword:`!pass` is silently ignored::
253253A :keyword: `match ` statement takes an expression and compares its value to successive
254254patterns given as one or more case blocks. This is superficially
255255similar 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.
256+ other languages), but it's more similar to pattern matching in
257+ 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.
258260
259261The simplest form compares a subject value against one or more literals::
260262
You can’t perform that action at this time.
0 commit comments