Skip to content

Commit a76782a

Browse files
MasseGuillaumeolafurpg
authored andcommitted
PR followup
1 parent e903793 commit a76782a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ To use this library, add the following to your build.sbt:
1111
libraryDependencies += "org.scala-lang.modules" %% "scala-collection-compat" % "0.2.1"
1212
```
1313

14-
Version 0.2.1 is compatible with Scala 2.13.0-M5. For Scala 2.13.0-M4 you should use version 0.1.1.
14+
Version 0.2.1 is compatible with Scala
1515

1616
Note that there are multiple ways to cross-build projects, see https://github.com/scala/collection-strawman/wiki/FAQ#how-do-i-cross-build-my-project-against-scala-212-and-scala-213.
1717

@@ -48,25 +48,25 @@ addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.0-RC1")
4848

4949
### Collection213Upgrade
5050

51-
The `Collection213Upgrade` rewrite upgrades to the 2.13 collections without the ability to compile the code-base with 2.12 or later. This rewrite is suitable for applications such as web servers that don't need to cross-compile against multiple Scala versions.
51+
The `Collection213Upgrade` rewrite upgrades to the 2.13 collections without the ability to compile the code-base with 2.12 or later. This rewrite is suitable for applications that don't need to cross-compile against multiple Scala versions.
5252

5353
```scala
5454
// build.sbt
55-
scalafixDependencies += "org.scala-lang.modules" ...
55+
scalafixDependencies += "org.scala-lang.modules" %% "scala-collection-migrations" % "0.2.1"
5656
scalacOptions ++= List("-Yrangepos", "-P:semanticdb:synthetics:on")
5757
```
5858

5959
```bash
6060
// sbt shell
61-
> ;scalafix Collections213Upgrade;test:scalafix Collections213Upgrade
61+
> ;test:scalafix Collections213Upgrade ;scalafix Collections213Upgrade
6262
```
6363

6464
### Collections213CrossCompat
6565

6666

67-
The `Collections213CrossCompat` rewrite upgrades to the 2.13 collections without the ability to compile the code-base with 2.12 or later. This rewrite is suitable for libraries that are cross-published for multiple Scala versions.
67+
The `Collections213CrossCompat` rewrite upgrades to the 2.13 collections with the ability to compile the code-base with 2.12 or later. This rewrite is suitable for libraries that are cross-published for multiple Scala versions.
6868

69-
To cross-build for 2.12 and 2.11, an additional module `scala-collection-compat` is required to provide missing extensions methods. This enables you to write your library using the latest 2.13 collections API while still supporting users on an older Scala version.
69+
To cross-build for 2.12 and 2.11, the rewrite rule introduces a dependency on the scala-collection-compat module, which provides the syntax of 2.13 on 2.12 and 2.11. This enables you to write your library using the latest 2.13 collections API while still supporting users on an older Scala version.
7070

7171
// build.sbt
7272
scalafixDependencies += "org.scala-lang.modules" %% "scala-collection-migrations" % "0.2.1"
@@ -76,7 +76,7 @@ scalacOptions ++= List("-Yrangepos", "-P:semanticdb:synthetics:on")
7676

7777
```bash
7878
// sbt shell
79-
> ;scalafix Collections213CrossCompat;test:scalafix Collections213CrossCompat
79+
> ;test:scalafix Collections213CrossCompat ;scalafix Collections213CrossCompat
8080
```
8181

8282
### Build.scala

0 commit comments

Comments
 (0)