From be899ad637655f73aa9f5cf0ed75f9c82bcadd2a Mon Sep 17 00:00:00 2001 From: Collin Monahan <41239783+llaenowyd@users.noreply.github.com> Date: Tue, 8 Jun 2021 05:50:45 -0400 Subject: [PATCH] Update Maps.scala For variety show the use of `==` instead of `x.equals(y)` in difference with the previous question, and as a reminder of one item from the previous segment on `List`. --- src/main/scala/stdlib/Maps.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/stdlib/Maps.scala b/src/main/scala/stdlib/Maps.scala index e47d97ec..cf8d4960 100644 --- a/src/main/scala/stdlib/Maps.scala +++ b/src/main/scala/stdlib/Maps.scala @@ -174,7 +174,7 @@ object Maps extends AnyFlatSpec with Matchers with org.scalaexercises.definition val myMap2 = Map("WI" -> "Wisconsin", "MI" -> "Michigan", "IA" -> "Iowa", "OH" -> "Ohio") - myMap1.equals(myMap2) should be(res0) + myMap1 == myMap2 should be(res0) } }