File tree 1 file changed +1
-6
lines changed
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -751,10 +751,7 @@ match my_number {
751
751
If the arm with the wildcard pattern was left off in the above
752
752
example, the typechecker would reject it at compile time. ` match `
753
753
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.
758
755
759
756
A powerful application of pattern matching is * destructuring* , where
760
757
you use the matching to get at the contents of data types. Remember
@@ -850,8 +847,6 @@ task failure:
850
847
851
848
* Accessing an out-of-bounds element of a vector.
852
849
853
- * Having no clauses match when evaluating an ` match check ` expression.
854
-
855
850
* An assertion failure.
856
851
857
852
* Integer division by zero.
You can’t perform that action at this time.
0 commit comments