Skip to content

Commit 00d7108

Browse files
committed
Expunge mention of match check from the tutorial
1 parent 5e22fb9 commit 00d7108

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

doc/tutorial.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -751,10 +751,7 @@ match my_number {
751751
If the arm with the wildcard pattern was left off in the above
752752
example, the typechecker would reject it at compile time. `match`
753753
constructs must be exhaustive: they must have an arm covering every
754-
possible case. (You may use the `match check` construct to write a
755-
non-exhaustive match, but it's highly undesirable to do so. You may
756-
reason that the missing cases will never occur, but the typechecker
757-
provides you with no assurance that your reasoning is correct.)
754+
possible case.
758755

759756
A powerful application of pattern matching is *destructuring*, where
760757
you use the matching to get at the contents of data types. Remember
@@ -850,8 +847,6 @@ task failure:
850847

851848
* Accessing an out-of-bounds element of a vector.
852849

853-
* Having no clauses match when evaluating an `match check` expression.
854-
855850
* An assertion failure.
856851

857852
* Integer division by zero.

0 commit comments

Comments
 (0)