diff options
author | Kato Kazuyoshi <kato.kazuyoshi@gmail.com> | 2011-06-18 13:52:29 +0000 |
---|---|---|
committer | Kato Kazuyoshi <kato.kazuyoshi@gmail.com> | 2011-06-18 13:52:29 +0000 |
commit | 8e10b0579b15ef85ca577ae941adc941dfb62079 (patch) | |
tree | c167064f5af52cb3d3a2f87898747713fdfdc7c0 | |
parent | 08546513f46d234c3e11f571ace4104521ea1a74 (diff) | |
download | scala-8e10b0579b15ef85ca577ae941adc941dfb62079.tar.gz scala-8e10b0579b15ef85ca577ae941adc941dfb62079.tar.bz2 scala-8e10b0579b15ef85ca577ae941adc941dfb62079.zip |
Fixes typo in ScalaDoc: IndexOutofBoundsExcepti...
Fixes typo in ScalaDoc: IndexOutofBoundsException =>
IndexOutOfBoundsException. Contributed by Simon Ochsenreither. Review by
dubochet.
5 files changed, 9 insertions, 9 deletions
diff --git a/src/library/scala/collection/immutable/StringLike.scala b/src/library/scala/collection/immutable/StringLike.scala index 98f1b90866..5a3a369286 100644 --- a/src/library/scala/collection/immutable/StringLike.scala +++ b/src/library/scala/collection/immutable/StringLike.scala @@ -49,7 +49,7 @@ self => protected[this] def newBuilder: Builder[Char, Repr] /** Return element at index `n` - * @throws IndexOutofBoundsException if the index is not valid + * @throws IndexOutOfBoundsException if the index is not valid */ def apply(n: Int): Char = toString charAt n diff --git a/src/library/scala/collection/mutable/BufferLike.scala b/src/library/scala/collection/mutable/BufferLike.scala index 9cab3bd656..0445adaa23 100644 --- a/src/library/scala/collection/mutable/BufferLike.scala +++ b/src/library/scala/collection/mutable/BufferLike.scala @@ -90,7 +90,7 @@ trait BufferLike[A, +This <: BufferLike[A, This] with Buffer[A]] * * @param n the index where new elements are inserted. * @param elems the traversable collection containing the elements to insert. - * @throws IndexOutofBoundsException if the index `n` is not in the valid range + * @throws IndexOutOfBoundsException if the index `n` is not in the valid range * `0 <= n <= length`. */ def insertAll(n: Int, elems: collection.Traversable[A]) @@ -99,7 +99,7 @@ trait BufferLike[A, +This <: BufferLike[A, This] with Buffer[A]] * * @param n the index which refers to the element to delete. * @return the previous element at index `n` - * @throws IndexOutofBoundsException if the if the index `n` is not in the valid range + * @throws IndexOutOfBoundsException if the if the index `n` is not in the valid range * `0 <= n < length`. */ def remove(n: Int): A @@ -108,7 +108,7 @@ trait BufferLike[A, +This <: BufferLike[A, This] with Buffer[A]] * * @param n the index which refers to the first element to remove. * @param count the number of elements to remove. - * @throws IndexOutofBoundsException if the index `n` is not in the valid range + * @throws IndexOutOfBoundsException if the index `n` is not in the valid range * `0 <= n <= length - count`. * @throws IllegalArgumentException if `count < 0`. */ @@ -160,7 +160,7 @@ trait BufferLike[A, +This <: BufferLike[A, This] with Buffer[A]] * * @param n the index where new elements are inserted. * @param elems the traversable collection containing the elements to insert. - * @throws IndexOutofBoundsException if the index `n` is not in the valid range + * @throws IndexOutOfBoundsException if the index `n` is not in the valid range * `0 <= n <= length`. */ def insert(n: Int, elems: A*) { insertAll(n, elems) } diff --git a/src/library/scala/collection/mutable/IndexedSeqLike.scala b/src/library/scala/collection/mutable/IndexedSeqLike.scala index 30b7e5e883..0c1df17ead 100644 --- a/src/library/scala/collection/mutable/IndexedSeqLike.scala +++ b/src/library/scala/collection/mutable/IndexedSeqLike.scala @@ -45,7 +45,7 @@ trait IndexedSeqLike[A, +Repr] extends scala.collection.IndexedSeqLike[A, Repr] * * @param n the index of the element to replace. * @param elem the new value. - * @throws IndexOutofBoundsException if the index is not valid. + * @throws IndexOutOfBoundsException if the index is not valid. */ def update(idx: Int, elem: A) diff --git a/src/library/scala/collection/mutable/MutableList.scala b/src/library/scala/collection/mutable/MutableList.scala index fb724339e3..3a0d9e0996 100644 --- a/src/library/scala/collection/mutable/MutableList.scala +++ b/src/library/scala/collection/mutable/MutableList.scala @@ -73,12 +73,12 @@ extends LinearSeq[A] override def length: Int = len /** Returns the <code>n</code>th element of this list. - * @throws IndexOutofBoundsException if index does not exist. + * @throws IndexOutOfBoundsException if index does not exist. */ override def apply(n: Int): A = first0.apply(n) /** Updates the <code>n</code>th element of this list to a new value. - * @throws IndexOutofBoundsException if index does not exist. + * @throws IndexOutOfBoundsException if index does not exist. */ def update(n: Int, x: A): Unit = first0.update(n, x) diff --git a/src/library/scala/collection/mutable/SeqLike.scala b/src/library/scala/collection/mutable/SeqLike.scala index ae70378427..7194f15bc2 100644 --- a/src/library/scala/collection/mutable/SeqLike.scala +++ b/src/library/scala/collection/mutable/SeqLike.scala @@ -30,7 +30,7 @@ trait SeqLike[A, +This <: SeqLike[A, This] with Seq[A]] * * @param n the index of the element to replace. * @param lem the new value. - * @throws IndexOutofBoundsException if the index is not valid. + * @throws IndexOutOfBoundsException if the index is not valid. */ def update(idx: Int, elem: A) |