summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@epfl.ch>2012-07-08 08:09:09 -0700
committerAdriaan Moors <adriaan.moors@epfl.ch>2012-07-08 08:09:09 -0700
commit97a88cc3956414c898c4dab27f32cd7a9a367e3f (patch)
tree45e9ce56e2d946a493ad3671c0fcf98aee45682b
parentf46c468f4730f669703d7536c64987711bbfa506 (diff)
parent28ce397cce15d575959b42097ab69489ddd83b46 (diff)
downloadscala-97a88cc3956414c898c4dab27f32cd7a9a367e3f.tar.gz
scala-97a88cc3956414c898c4dab27f32cd7a9a367e3f.tar.bz2
scala-97a88cc3956414c898c4dab27f32cd7a9a367e3f.zip
Merge pull request #829 from ConnorDoyle/master
Fixed an error in the documentation for MapLike
-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.