Skip to content

Commit deea74d

Browse files
committed
docs: Fix a typo in Match Types
1 parent 842e4c4 commit deea74d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Here `=:=` is understood to mean that left and right hand sides are mutually sub
2323

2424
In general, a match type is of the form
2525
```scala
26-
S match { P1 => Tn ... Pn => Tn }
26+
S match { P1 => T1 ... Pn => Tn }
2727
```
2828
where `S`, `T1`, ..., `Tn` are types and `P1`, ..., `Pn` are type patterns. Type variables
2929
in patterns start as usual with a lower case letter.
@@ -50,7 +50,7 @@ In this definition, every instance of `Concat[A, B]`, whether reducible or not,
5050

5151
The internal representation of a match type
5252
```
53-
S match { P1 => Tn ... Pn => Tn }
53+
S match { P1 => T1 ... Pn => Tn }
5454
```
5555
is `Match(S, C1, ..., Cn) <: B` where each case `Ci` is of the form
5656
```

0 commit comments

Comments
 (0)