diff options
author | Paul Phillips <paulp@improving.org> | 2010-04-24 02:49:34 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-04-24 02:49:34 +0000 |
commit | a0e5e165c97c01cf0854aeda72e4e9d1d037bb8c (patch) | |
tree | dbb7bf2e6793590a730ac4137107f53b5c4d11ed /src | |
parent | 6736ca07f22a8da42604a27bda84f71b720b54ed (diff) | |
download | scala-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-x | src/library/scala/collection/immutable/DefaultMap.scala | 2 |
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 } } |