summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-04-24 02:49:34 +0000
committerPaul Phillips <paulp@improving.org>2010-04-24 02:49:34 +0000
commita0e5e165c97c01cf0854aeda72e4e9d1d037bb8c (patch)
treedbb7bf2e6793590a730ac4137107f53b5c4d11ed /src
parent6736ca07f22a8da42604a27bda84f71b720b54ed (diff)
downloadscala-a0e5e165c97c01cf0854aeda72e4e9d1d037bb8c.tar.gz
scala-a0e5e165c97c01cf0854aeda72e4e9d1d037bb8c.tar.bz2
scala-a0e5e165c97c01cf0854aeda72e4e9d1d037bb8c.zip
Took another of universal equality's victims to...
Took another of universal equality's victims to the hospital. Closes #3348, no review.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/library/scala/collection/immutable/DefaultMap.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/immutable/DefaultMap.scala b/src/library/scala/collection/immutable/DefaultMap.scala
index 667d86d352..4f36679119 100755
--- a/src/library/scala/collection/immutable/DefaultMap.scala
+++ b/src/library/scala/collection/immutable/DefaultMap.scala
@@ -50,7 +50,7 @@ trait DefaultMap[A, +B] extends Map[A, B] { self =>
*/
override def - (key: A): Map[A, B] = {
val b = newBuilder
- b ++= this filter (key !=)
+ for (kv <- this ; if kv._1 != key) b += kv
b.result
}
}