Skip to content

Commit ccea6c1

Browse files
authored
Merge pull request #31 from xuwei-k/patch-1
add curly brackets
2 parents 735164b + 3b3396f commit ccea6c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,14 @@ This module is published only for the Scala 2.13.x series, so in a
4242
cross-built project, the dependency should take this form:
4343

4444
```scala
45-
libraryDependencies ++=
45+
libraryDependencies ++= {
4646
CrossVersion.partialVersion(scalaVersion.value) match {
4747
case Some((2, minor)) if minor >= 13 =>
4848
Seq("org.scala-lang.modules" %% "scala-parallel-collections" % "0.1.2")
4949
case _ =>
5050
Seq()
5151
}
52+
}
5253
```
5354

5455
This way of testing `scalaVersion` is robust across varying Scala

0 commit comments

Comments
 (0)