From e9be42dc3ac3cdb2c14ae7bb468f7f57c6b883ec Mon Sep 17 00:00:00 2001 From: Arunkumar M V <52396436+arunkmv@users.noreply.github.com> Date: Wed, 8 Jul 2020 10:26:00 +0530 Subject: [PATCH] Fix map method description The contains method checks if a map contains a certain key. --- _overviews/scala-book/collections-maps.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_overviews/scala-book/collections-maps.md b/_overviews/scala-book/collections-maps.md index 22c0a3100e..1556a66ef8 100644 --- a/_overviews/scala-book/collections-maps.md +++ b/_overviews/scala-book/collections-maps.md @@ -46,7 +46,7 @@ keys: Iterable[Int] = Set(1, 2, 3, 4) scala> val values = m.values val values: Iterable[String] = MapLike.DefaultValuesIterable(a, b, c, d) -// how to test if a Map contains a value +// how to test if a Map contains a key scala> val contains3 = m.contains(3) contains3: Boolean = true