Skip to content

Commit

Permalink
Fixes typo in ScalaDoc: IndexOutofBoundsExcepti...
Browse files Browse the repository at this point in the history
Fixes typo in ScalaDoc: IndexOutofBoundsException =>
IndexOutOfBoundsException. Contributed by Simon Ochsenreither. Review by
dubochet.
  • Loading branch information
kzys committed Jun 18, 2011
1 parent 0854651 commit 8e10b05
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/library/scala/collection/immutable/StringLike.scala
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions src/library/scala/collection/mutable/BufferLike.scala
Expand Up @@ -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])
Expand All @@ -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
Expand All @@ -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`.
*/
Expand Down Expand Up @@ -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) }
Expand Down
2 changes: 1 addition & 1 deletion src/library/scala/collection/mutable/IndexedSeqLike.scala
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions src/library/scala/collection/mutable/MutableList.scala
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/library/scala/collection/mutable/SeqLike.scala
Expand Up @@ -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)

Expand Down

0 comments on commit 8e10b05

Please sign in to comment.