Skip to content

Commit d79d4dc

Browse files
committed
Fixed compilation error with lamba parenthesis
1 parent 1422fb9 commit d79d4dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scala-core-collections-modules/scala-core-map/src/test/scala/com/baeldung/scala/collections/MapKeyValue.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class MapKeyValue extends AnyWordSpec with Matchers {
77
"Map::map" should {
88
"map both keys and values to a new Iterable" in {
99
val m = Map(1 -> "A", 2 -> "B")
10-
val f = { t: (Int, String) => s"${t._1}${t._2}" }
10+
val f = { (t: (Int, String)) => s"${t._1}${t._2}" }
1111
(m map f) shouldBe Iterable("1A", "2B")
1212
}
1313

scala-core-collections-modules/scala-core-map/src/test/scala/com/baeldung/scala/filtermap/FilterMapSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class FilterMapSpec
2323
filterKeysSet.toMap,
2424
withFilterMap.map(x => x)
2525
)
26-
forAll(filteredMapTable) { map: Map[Rank, Option[String]] =>
26+
forAll(filteredMapTable) { (map: Map[Rank, Option[String]]) =>
2727
map.valuesIterator.exists(_.contains(None)) shouldBe false
2828
}
2929
}

0 commit comments

Comments
 (0)