Skip to content

Commit 1b7e660

Browse files
committed
Merge pull request scala#4495 from ceedubs/updated-throws
Add @throws annotation to GenSeqLike.updated
2 parents e12ba55 + ee8442d commit 1b7e660

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/library/scala/collection/GenSeqLike.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ trait GenSeqLike[+A, +Repr] extends Any with GenIterableLike[A, Repr] with Equal
275275
* @tparam That $thatinfo
276276
* @param bf $bfinfo
277277
* @return a new $coll` which is a copy of this $coll with the element at position `index` replaced by `elem`.
278+
* @throws IndexOutOfBoundsException if `index` does not satisfy `0 <= index < length`.
278279
*
279280
* @usecase def updated(index: Int, elem: A): $Coll[A]
280281
* @inheritdoc

0 commit comments

Comments
 (0)