Skip to content

Commit 7fc6f06

Browse files
committed
Correct parameter reference in copyInto docs
1 parent ebe9d59 commit 7fc6f06

File tree

5 files changed

+32
-32
lines changed

5 files changed

+32
-32
lines changed

libraries/stdlib/common/src/generated/_Arrays.kt

+9-9
Original file line numberDiff line numberDiff line change
@@ -5842,7 +5842,7 @@ public expect fun CharArray.contentToString(): String
58425842
* @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.
58435843
*
58445844
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.
5845-
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationIndex],
5845+
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
58465846
* or when that index is out of the [destination] array indices range.
58475847
*
58485848
* @return the [destination] array.
@@ -5861,7 +5861,7 @@ public expect fun <T> Array<out T>.copyInto(destination: Array<T>, destinationOf
58615861
* @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.
58625862
*
58635863
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.
5864-
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationIndex],
5864+
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
58655865
* or when that index is out of the [destination] array indices range.
58665866
*
58675867
* @return the [destination] array.
@@ -5880,7 +5880,7 @@ public expect fun ByteArray.copyInto(destination: ByteArray, destinationOffset:
58805880
* @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.
58815881
*
58825882
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.
5883-
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationIndex],
5883+
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
58845884
* or when that index is out of the [destination] array indices range.
58855885
*
58865886
* @return the [destination] array.
@@ -5899,7 +5899,7 @@ public expect fun ShortArray.copyInto(destination: ShortArray, destinationOffset
58995899
* @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.
59005900
*
59015901
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.
5902-
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationIndex],
5902+
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
59035903
* or when that index is out of the [destination] array indices range.
59045904
*
59055905
* @return the [destination] array.
@@ -5918,7 +5918,7 @@ public expect fun IntArray.copyInto(destination: IntArray, destinationOffset: In
59185918
* @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.
59195919
*
59205920
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.
5921-
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationIndex],
5921+
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
59225922
* or when that index is out of the [destination] array indices range.
59235923
*
59245924
* @return the [destination] array.
@@ -5937,7 +5937,7 @@ public expect fun LongArray.copyInto(destination: LongArray, destinationOffset:
59375937
* @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.
59385938
*
59395939
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.
5940-
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationIndex],
5940+
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
59415941
* or when that index is out of the [destination] array indices range.
59425942
*
59435943
* @return the [destination] array.
@@ -5956,7 +5956,7 @@ public expect fun FloatArray.copyInto(destination: FloatArray, destinationOffset
59565956
* @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.
59575957
*
59585958
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.
5959-
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationIndex],
5959+
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
59605960
* or when that index is out of the [destination] array indices range.
59615961
*
59625962
* @return the [destination] array.
@@ -5975,7 +5975,7 @@ public expect fun DoubleArray.copyInto(destination: DoubleArray, destinationOffs
59755975
* @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.
59765976
*
59775977
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.
5978-
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationIndex],
5978+
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
59795979
* or when that index is out of the [destination] array indices range.
59805980
*
59815981
* @return the [destination] array.
@@ -5994,7 +5994,7 @@ public expect fun BooleanArray.copyInto(destination: BooleanArray, destinationOf
59945994
* @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.
59955995
*
59965996
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.
5997-
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationIndex],
5997+
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
59985998
* or when that index is out of the [destination] array indices range.
59995999
*
60006000
* @return the [destination] array.

libraries/stdlib/common/src/generated/_UArrays.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ public fun UShortArray.contentToString(): String {
334334
* @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.
335335
*
336336
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.
337-
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationIndex],
337+
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
338338
* or when that index is out of the [destination] array indices range.
339339
*
340340
* @return the [destination] array.
@@ -358,7 +358,7 @@ public inline fun UIntArray.copyInto(destination: UIntArray, destinationOffset:
358358
* @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.
359359
*
360360
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.
361-
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationIndex],
361+
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
362362
* or when that index is out of the [destination] array indices range.
363363
*
364364
* @return the [destination] array.
@@ -382,7 +382,7 @@ public inline fun ULongArray.copyInto(destination: ULongArray, destinationOffset
382382
* @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.
383383
*
384384
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.
385-
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationIndex],
385+
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
386386
* or when that index is out of the [destination] array indices range.
387387
*
388388
* @return the [destination] array.
@@ -406,7 +406,7 @@ public inline fun UByteArray.copyInto(destination: UByteArray, destinationOffset
406406
* @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.
407407
*
408408
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.
409-
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationIndex],
409+
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
410410
* or when that index is out of the [destination] array indices range.
411411
*
412412
* @return the [destination] array.

libraries/stdlib/js/src/generated/_ArraysJs.kt

+9-9
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ public actual fun CharArray.contentToString(): String {
412412
* @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.
413413
*
414414
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.
415-
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationIndex],
415+
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
416416
* or when that index is out of the [destination] array indices range.
417417
*
418418
* @return the [destination] array.
@@ -436,7 +436,7 @@ public actual inline fun <T> Array<out T>.copyInto(destination: Array<T>, destin
436436
* @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.
437437
*
438438
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.
439-
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationIndex],
439+
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
440440
* or when that index is out of the [destination] array indices range.
441441
*
442442
* @return the [destination] array.
@@ -460,7 +460,7 @@ public actual inline fun ByteArray.copyInto(destination: ByteArray, destinationO
460460
* @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.
461461
*
462462
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.
463-
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationIndex],
463+
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
464464
* or when that index is out of the [destination] array indices range.
465465
*
466466
* @return the [destination] array.
@@ -484,7 +484,7 @@ public actual inline fun ShortArray.copyInto(destination: ShortArray, destinatio
484484
* @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.
485485
*
486486
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.
487-
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationIndex],
487+
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
488488
* or when that index is out of the [destination] array indices range.
489489
*
490490
* @return the [destination] array.
@@ -508,7 +508,7 @@ public actual inline fun IntArray.copyInto(destination: IntArray, destinationOff
508508
* @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.
509509
*
510510
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.
511-
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationIndex],
511+
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
512512
* or when that index is out of the [destination] array indices range.
513513
*
514514
* @return the [destination] array.
@@ -532,7 +532,7 @@ public actual inline fun LongArray.copyInto(destination: LongArray, destinationO
532532
* @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.
533533
*
534534
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.
535-
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationIndex],
535+
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
536536
* or when that index is out of the [destination] array indices range.
537537
*
538538
* @return the [destination] array.
@@ -556,7 +556,7 @@ public actual inline fun FloatArray.copyInto(destination: FloatArray, destinatio
556556
* @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.
557557
*
558558
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.
559-
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationIndex],
559+
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
560560
* or when that index is out of the [destination] array indices range.
561561
*
562562
* @return the [destination] array.
@@ -580,7 +580,7 @@ public actual inline fun DoubleArray.copyInto(destination: DoubleArray, destinat
580580
* @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.
581581
*
582582
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.
583-
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationIndex],
583+
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
584584
* or when that index is out of the [destination] array indices range.
585585
*
586586
* @return the [destination] array.
@@ -604,7 +604,7 @@ public actual inline fun BooleanArray.copyInto(destination: BooleanArray, destin
604604
* @param endIndex the end (exclusive) of the subrange to copy, size of this array by default.
605605
*
606606
* @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this array indices or when `startIndex > endIndex`.
607-
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationIndex],
607+
* @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset],
608608
* or when that index is out of the [destination] array indices range.
609609
*
610610
* @return the [destination] array.

0 commit comments

Comments
 (0)