summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorConnor Doyle <connor.p.d@gmail.com>2012-07-05 10:53:21 -0500
committerConnor Doyle <connor.p.d@gmail.com>2012-07-05 10:53:21 -0500
commit28ce397cce15d575959b42097ab69489ddd83b46 (patch)
treef68df9cf6c3ef1d1e65d5e8eb61264025f91523a /src/library
parent171a1d8bc859947d80d4728c251abe330dbe9802 (diff)
downloadscala-28ce397cce15d575959b42097ab69489ddd83b46.tar.gz
scala-28ce397cce15d575959b42097ab69489ddd83b46.tar.bz2
scala-28ce397cce15d575959b42097ab69489ddd83b46.zip
Fixed the API documentation for scala.collection.MapLike.filterNot. The previous documentation erroneously indicated that filterNot retains elements for which the supplied predicate is true when in fact the opposite is the case, as verified in the REPL.
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/collection/MapLike.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/scala/collection/MapLike.scala b/src/library/scala/collection/MapLike.scala
index 55d482f6c8..ed2a877631 100644
--- a/src/library/scala/collection/MapLike.scala
+++ b/src/library/scala/collection/MapLike.scala
@@ -301,11 +301,11 @@ self =>
def ++[B1 >: B](xs: GenTraversableOnce[(A, B1)]): Map[A, B1] =
((repr: Map[A, B1]) /: xs.seq) (_ + _)
- /** Returns a new map with all key/value pairs for which the predicate
+ /** Returns a new map obtained by removing all key/value pairs for which the predicate
* `p` returns `true`.
*
- * '''Note:''' This method works by successively removing elements fro which the
- * predicate is false from this set.
+ * '''Note:''' This method works by successively removing elements for which the
+ * predicate is true from this set.
* If removal is slow, or you expect that most elements of the set
* will be removed, you might consider using `filter`
* with a negated predicate instead.