Skip to content

Commit 669c0c7

Browse files
authored
Merge pull request #2207 from peter-nuernberg/main
2 parents 9083cab + 120377d commit 669c0c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_scala3-reference/changed-features/pattern-matching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ A usage of a variadic extractor is irrefutable if one of the following condition
9696
## Boolean Match
9797

9898
- `U =:= Boolean`
99-
- Pattern-matching on exactly `0` pattern
99+
- Pattern-matching on exactly `0` patterns
100100

101101
For example:
102102

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ use of the match type as the return type):
6969
```scala
7070
def leafElem[X](x: X): LeafElem[X] = x match
7171
case x: String => x.charAt(0)
72-
case x: Array[t] => leafElem(x(9))
72+
case x: Array[t] => leafElem(x(0))
7373
case x: Iterable[t] => leafElem(x.head)
7474
case x: AnyVal => x
7575
```

0 commit comments

Comments
 (0)