8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9083cab + 120377d commit 669c0c7Copy full SHA for 669c0c7
_scala3-reference/changed-features/pattern-matching.md
@@ -96,7 +96,7 @@ A usage of a variadic extractor is irrefutable if one of the following condition
96
## Boolean Match
97
98
- `U =:= Boolean`
99
-- Pattern-matching on exactly `0` pattern
+- Pattern-matching on exactly `0` patterns
100
101
For example:
102
_scala3-reference/new-types/match-types.md
@@ -69,7 +69,7 @@ use of the match type as the return type):
69
```scala
70
def leafElem[X](x: X): LeafElem[X] = x match
71
case x: String => x.charAt(0)
72
- case x: Array[t] => leafElem(x(9))
+ case x: Array[t] => leafElem(x(0))
73
case x: Iterable[t] => leafElem(x.head)
74
case x: AnyVal => x
75
```
0 commit comments