diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-07-08 08:09:09 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-07-08 08:09:09 -0700 |
commit | 97a88cc3956414c898c4dab27f32cd7a9a367e3f (patch) | |
tree | 45e9ce56e2d946a493ad3671c0fcf98aee45682b | |
parent | f46c468f4730f669703d7536c64987711bbfa506 (diff) | |
parent | 28ce397cce15d575959b42097ab69489ddd83b46 (diff) | |
download | scala-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.scala | 6 |
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. |