Skip to content

Commit 680ea03

Browse files
unkarjedyWojciechMazur
authored andcommitted
change wildcard type parameter from _ to ?
1 parent 750da51 commit 680ea03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/_docs/reference/other-new-features/matchable.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The Scala 3 standard library has a type [`IArray`](https://scala-lang.org/api/3.
1212
arrays that is defined like this:
1313

1414
```scala
15-
opaque type IArray[+T] = Array[_ <: T]
15+
opaque type IArray[+T] = Array[? <: T]
1616
```
1717

1818
The `IArray` type offers extension methods for `length` and `apply`, but not for `update`; hence it seems values of type `IArray` cannot be updated.

0 commit comments

Comments
 (0)