Skip to content

Commit 3b3396f

Browse files
authored
add curly brackets
``` build.sbt:7: error: No implicit for Append.Values[Seq[sbt.ModuleID], Option[(Int, Int)]] found, so Option[(Int, Int)] cannot be appended to Seq[sbt.ModuleID] libraryDependencies ++= ^ build.sbt:9: error: value >= is not a member of Any case Some((2, minor)) if minor >= 13 => ^ build.sbt:10: error: type mismatch; found : Seq[sbt.ModuleID] required: sbt.internals.DslEntry Seq("org.scala-lang.modules" %% "scala-parallel-collections" % "0.1.2") ^ [error] Type error in expression Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? q ```
1 parent 735164b commit 3b3396f

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)