Skip to content

Commit f359ba2

Browse files
authored
re-instate important explanation
1 parent b412488 commit f359ba2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Doc/tutorial/controlflow.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ other languages), but it's more similar to pattern matching in
290290
languages like Rust or Haskell. Only the first pattern that matches
291291
gets executed and it can also extract components (sequence elements
292292
or object attributes) from the value into variables.
293+
If no case matches, none of the branches is executed.
293294

294295
The simplest form compares a subject value against one or more literals::
295296

0 commit comments

Comments
 (0)