Skip to content

Commit 8e223e7

Browse files
authored
Merge pull request scala/scala#9737 from NthPortal/bugfix/TrieMap-filterInPlace/PR
Fix inverted condition in s.c.c.Map#filterInPlaceImpl
2 parents beb7f73 + a5e5457 commit 8e223e7

File tree

1 file changed

+1
-1
lines changed
  • library/src/scala/collection/concurrent

1 file changed

+1
-1
lines changed

library/src/scala/collection/concurrent/Map.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ trait Map[K, V] extends scala.collection.mutable.Map[K, V] {
136136
val it = iterator
137137
while (it.hasNext) {
138138
val (k, v) = it.next()
139-
if (p(k, v)) remove(k, v)
139+
if (!p(k, v)) remove(k, v)
140140
}
141141
this
142142
}

0 commit comments

Comments
 (0)