From af6da0b41ead7863216af0aaea83d5463fa93bfd Mon Sep 17 00:00:00 2001 From: Aleksandar Pokopec Date: Thu, 8 Apr 2010 12:04:55 +0000 Subject: Some typos in collections. Review by odersky. --- src/library/scala/collection/SeqLike.scala | 1 - src/library/scala/collection/TraversableLike.scala | 2 +- src/library/scala/collection/TraversableOnce.scala | 4 ++-- src/library/scala/collection/TraversableProxyLike.scala | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/library/scala/collection/SeqLike.scala b/src/library/scala/collection/SeqLike.scala index 0db64926a6..3d47bcad71 100644 --- a/src/library/scala/collection/SeqLike.scala +++ b/src/library/scala/collection/SeqLike.scala @@ -434,7 +434,6 @@ trait SeqLike[+A, +Repr] extends IterableLike[A, Repr] { self => * * @param that the sequence to test * @return `true` if this collection has `that` as a prefix, `false` otherwise. - * otherwise false */ def startsWith[B](that: Seq[B]): Boolean = startsWith(that, 0) diff --git a/src/library/scala/collection/TraversableLike.scala b/src/library/scala/collection/TraversableLike.scala index 7008d3b5fd..0bbc9c40d1 100644 --- a/src/library/scala/collection/TraversableLike.scala +++ b/src/library/scala/collection/TraversableLike.scala @@ -473,7 +473,7 @@ trait TraversableLike[+A, +Repr] extends HasNewBuilder[A, Repr] with Traversable /** Optionally selects the first element. * $orderDependent - * @return the first element of this $coll$ if it is nonempty, `None` if it is empty. + * @return the first element of this $coll if it is nonempty, `None` if it is empty. */ def headOption: Option[A] = if (isEmpty) None else Some(head) diff --git a/src/library/scala/collection/TraversableOnce.scala b/src/library/scala/collection/TraversableOnce.scala index 6e4917b77e..351de93a73 100644 --- a/src/library/scala/collection/TraversableOnce.scala +++ b/src/library/scala/collection/TraversableOnce.scala @@ -31,7 +31,7 @@ import mutable.{ Buffer, ListBuffer, ArrayBuffer } * @define coll traversable or iterator * @define orderDependentFold * - * Note: might return different results for different runs, unless the underlying collection type is ordered. + * Note: might return different results for different runs, unless the underlying collection type is ordered * or the operator is associative and commutative. * @define willNotTerminateInf * @@ -123,7 +123,7 @@ trait TraversableOnce[+A] { * @param z the start value. * @param op the binary operator. * @tparam B the result type of the binary operator. - * @return the result of inserting `op` between consecutive elements of this $coll$, + * @return the result of inserting `op` between consecutive elements of this $coll, * going left to right with the start value `z` on the left: * {{{ * op(...op(op(z, x,,1,,), x,,2,,), ..., x,,n,,) diff --git a/src/library/scala/collection/TraversableProxyLike.scala b/src/library/scala/collection/TraversableProxyLike.scala index fb8da98a6b..7b4bf99d04 100644 --- a/src/library/scala/collection/TraversableProxyLike.scala +++ b/src/library/scala/collection/TraversableProxyLike.scala @@ -18,7 +18,7 @@ import mutable.{Buffer, StringBuilder} /** This trait implements a proxy for traversable objects. It forwards - * all calls to a different traversable object + * all calls to a different traversable object. * * @author Martin Odersky * @version 2.8 -- cgit v1.2.3