summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2010-04-08 12:04:55 +0000
committerAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2010-04-08 12:04:55 +0000
commitaf6da0b41ead7863216af0aaea83d5463fa93bfd (patch)
tree4894c342e46305f76a9e10a42db2b1e5d6db795e
parent6dd51419b8a2565db0ef1d6f36cb57b5ef7654cf (diff)
downloadscala-af6da0b41ead7863216af0aaea83d5463fa93bfd.tar.gz
scala-af6da0b41ead7863216af0aaea83d5463fa93bfd.tar.bz2
scala-af6da0b41ead7863216af0aaea83d5463fa93bfd.zip
Some typos in collections. Review by odersky.
-rw-r--r--src/library/scala/collection/SeqLike.scala1
-rw-r--r--src/library/scala/collection/TraversableLike.scala2
-rw-r--r--src/library/scala/collection/TraversableOnce.scala4
-rw-r--r--src/library/scala/collection/TraversableProxyLike.scala2
4 files changed, 4 insertions, 5 deletions
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