Skip to content

Commit 8178166

Browse files
eed3si9ndwijnand
andauthored
Update _overviews/core/collections-migration-213.md
Co-Authored-By: Dale Wijnand <344610+dwijnand@users.noreply.github.com>
1 parent 2d8f8e5 commit 8178166

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_overviews/core/collections-migration-213.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ In the future when your API is able to break the source compatibility, it might
5353
import scala.collection.immutable.Seq
5454
~~~
5555

56-
Note that in Scala 2.13 the sequence passed into a vararg as `orderFood(xs: _*)` must also be immutable. This is because the sequence passed into a vararg must conform to`scala.Seq` acoording to [Specification](https://www.scala-lang.org/files/archive/spec/2.12/06-expressions.html#function-applications). Thus if your API exposes varargs, it will be an unavoidable breaking change. This might affect Java interoperability.
56+
Note that in Scala 2.13 the sequence passed into as a varargs as `orderFood(xs: _*)` must also be immutable. This is because the sequence passed in as a varargs must conform to `scala.Seq` according to [SLS 6.6](https://www.scala-lang.org/files/archive/spec/2.12/06-expressions.html#function-applications). Thus, if your API exposes varargs it will be an unavoidable breaking change. This might affect Java interoperability.
5757

5858
## What are the breaking changes?
5959

@@ -260,4 +260,4 @@ Examples of libraries that cross-compile with separate source directories:
260260
To learn about differences when implementing custom collection types or operations, see the following documents:
261261
- [The architecture of Scala collections]({{ site.baseurl }}/overviews/core/architecture-of-scala-213-collections.html)
262262
- [Implementing custom collections]({{ site.baseurl }}/overviews/core/custom-collections.html)
263-
- [Adding custom collection operations]({{ site.baseurl }}/overviews/core/custom-collection-operations.html)
263+
- [Adding custom collection operations]({{ site.baseurl }}/overviews/core/custom-collection-operations.html)

0 commit comments

Comments
 (0)