Skip to content

Commit 1b3d830

Browse files
authored
Merge pull request #6 from tegonal/doc-match-type
Doc match type
2 parents bb6470f + 13872b8 commit 1b3d830

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/reference/new-types/match-types.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ S match { P1 => T1 ... Pn => Tn }
5454
```
5555
is `Match(S, C1, ..., Cn) <: B` where each case `Ci` is of the form
5656
```
57-
[Xs] => P => T
57+
[Xs] =>> P => T
5858
```
5959
Here, `[Xs]` is a type parameter clause of the variables bound in pattern `Pi`. If there are no bound type variables in a case, the type parameter clause is omitted and only the function type `P => T` is kept. So each case is either a unary function type or a type lambda over a unary function type.
6060

@@ -68,7 +68,7 @@ We define match type reduction in terms of an auxiliary relation, `can-reduce`:
6868
```
6969
Match(S, C1, ..., Cn) can-reduce i, T'
7070
```
71-
if `Ci = [Xs] => P => T` and there are minimal instantiations `Is` of the type variables `Xs` such that
71+
if `Ci = [Xs] =>> P => T` and there are minimal instantiations `Is` of the type variables `Xs` such that
7272
```
7373
S <: [Xs := Is] P
7474
T' = [Xs := Is] T

0 commit comments

Comments
 (0)