Skip to content

Commit c5f0b07

Browse files
kzysdcsobral
authored andcommitted
Fixes typo in ScalaDoc: IndexOutofBoundsExcepti...
Fixes typo in ScalaDoc: IndexOutofBoundsException => IndexOutOfBoundsException. Contributed by Simon Ochsenreither. Review by dubochet.
1 parent 4c37608 commit c5f0b07

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/library/scala/collection/immutable/StringLike.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ self =>
4949
protected[this] def newBuilder: Builder[Char, Repr]
5050

5151
/** Return element at index `n`
52-
* @throws IndexOutofBoundsException if the index is not valid
52+
* @throws IndexOutOfBoundsException if the index is not valid
5353
*/
5454
def apply(n: Int): Char = toString charAt n
5555

src/library/scala/collection/mutable/BufferLike.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ trait BufferLike[A, +This <: BufferLike[A, This] with Buffer[A]]
9090
*
9191
* @param n the index where new elements are inserted.
9292
* @param elems the traversable collection containing the elements to insert.
93-
* @throws IndexOutofBoundsException if the index `n` is not in the valid range
93+
* @throws IndexOutOfBoundsException if the index `n` is not in the valid range
9494
* `0 <= n <= length`.
9595
*/
9696
def insertAll(n: Int, elems: collection.Traversable[A])
@@ -99,7 +99,7 @@ trait BufferLike[A, +This <: BufferLike[A, This] with Buffer[A]]
9999
*
100100
* @param n the index which refers to the element to delete.
101101
* @return the previous element at index `n`
102-
* @throws IndexOutofBoundsException if the if the index `n` is not in the valid range
102+
* @throws IndexOutOfBoundsException if the if the index `n` is not in the valid range
103103
* `0 <= n < length`.
104104
*/
105105
def remove(n: Int): A
@@ -108,7 +108,7 @@ trait BufferLike[A, +This <: BufferLike[A, This] with Buffer[A]]
108108
*
109109
* @param n the index which refers to the first element to remove.
110110
* @param count the number of elements to remove.
111-
* @throws IndexOutofBoundsException if the index `n` is not in the valid range
111+
* @throws IndexOutOfBoundsException if the index `n` is not in the valid range
112112
* `0 <= n <= length - count`.
113113
* @throws IllegalArgumentException if `count < 0`.
114114
*/
@@ -160,7 +160,7 @@ trait BufferLike[A, +This <: BufferLike[A, This] with Buffer[A]]
160160
*
161161
* @param n the index where new elements are inserted.
162162
* @param elems the traversable collection containing the elements to insert.
163-
* @throws IndexOutofBoundsException if the index `n` is not in the valid range
163+
* @throws IndexOutOfBoundsException if the index `n` is not in the valid range
164164
* `0 <= n <= length`.
165165
*/
166166
def insert(n: Int, elems: A*) { insertAll(n, elems) }

src/library/scala/collection/mutable/IndexedSeqLike.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ trait IndexedSeqLike[A, +Repr] extends scala.collection.IndexedSeqLike[A, Repr]
4545
*
4646
* @param n the index of the element to replace.
4747
* @param elem the new value.
48-
* @throws IndexOutofBoundsException if the index is not valid.
48+
* @throws IndexOutOfBoundsException if the index is not valid.
4949
*/
5050
def update(idx: Int, elem: A)
5151

src/library/scala/collection/mutable/MutableList.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ extends LinearSeq[A]
7373
override def length: Int = len
7474

7575
/** Returns the <code>n</code>th element of this list.
76-
* @throws IndexOutofBoundsException if index does not exist.
76+
* @throws IndexOutOfBoundsException if index does not exist.
7777
*/
7878
override def apply(n: Int): A = first0.apply(n)
7979

8080
/** Updates the <code>n</code>th element of this list to a new value.
81-
* @throws IndexOutofBoundsException if index does not exist.
81+
* @throws IndexOutOfBoundsException if index does not exist.
8282
*/
8383
def update(n: Int, x: A): Unit = first0.update(n, x)
8484

src/library/scala/collection/mutable/SeqLike.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ trait SeqLike[A, +This <: SeqLike[A, This] with Seq[A]]
3030
*
3131
* @param n the index of the element to replace.
3232
* @param lem the new value.
33-
* @throws IndexOutofBoundsException if the index is not valid.
33+
* @throws IndexOutOfBoundsException if the index is not valid.
3434
*/
3535
def update(idx: Int, elem: A)
3636

0 commit comments

Comments
 (0)