Fix sample reference for unsigned array range sort
This commit is contained in:
@@ -4010,6 +4010,8 @@ public fun UShortArray.sort(): Unit {
|
|||||||
*
|
*
|
||||||
* @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.
|
* @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.
|
||||||
* @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].
|
* @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].
|
||||||
|
*
|
||||||
|
* @sample samples.collections.Arrays.Sorting.sortRangeOfArray
|
||||||
*/
|
*/
|
||||||
@SinceKotlin("1.4")
|
@SinceKotlin("1.4")
|
||||||
@ExperimentalUnsignedTypes
|
@ExperimentalUnsignedTypes
|
||||||
@@ -4026,6 +4028,8 @@ public fun UIntArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit {
|
|||||||
*
|
*
|
||||||
* @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.
|
* @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.
|
||||||
* @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].
|
* @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].
|
||||||
|
*
|
||||||
|
* @sample samples.collections.Arrays.Sorting.sortRangeOfArray
|
||||||
*/
|
*/
|
||||||
@SinceKotlin("1.4")
|
@SinceKotlin("1.4")
|
||||||
@ExperimentalUnsignedTypes
|
@ExperimentalUnsignedTypes
|
||||||
@@ -4042,6 +4046,8 @@ public fun ULongArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit {
|
|||||||
*
|
*
|
||||||
* @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.
|
* @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.
|
||||||
* @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].
|
* @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].
|
||||||
|
*
|
||||||
|
* @sample samples.collections.Arrays.Sorting.sortRangeOfArray
|
||||||
*/
|
*/
|
||||||
@SinceKotlin("1.4")
|
@SinceKotlin("1.4")
|
||||||
@ExperimentalUnsignedTypes
|
@ExperimentalUnsignedTypes
|
||||||
@@ -4058,6 +4064,8 @@ public fun UByteArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit {
|
|||||||
*
|
*
|
||||||
* @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.
|
* @throws IndexOutOfBoundsException if [fromIndex] is less than zero or [toIndex] is greater than the size of this array.
|
||||||
* @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].
|
* @throws IllegalArgumentException if [fromIndex] is greater than [toIndex].
|
||||||
|
*
|
||||||
|
* @sample samples.collections.Arrays.Sorting.sortRangeOfArray
|
||||||
*/
|
*/
|
||||||
@SinceKotlin("1.4")
|
@SinceKotlin("1.4")
|
||||||
@ExperimentalUnsignedTypes
|
@ExperimentalUnsignedTypes
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -1326,7 +1326,7 @@ object ArrayOps : TemplateGroupBase() {
|
|||||||
specialFor(ArraysOfObjects) {
|
specialFor(ArraysOfObjects) {
|
||||||
sample("samples.collections.Arrays.Sorting.sortRangeOfArrayOfComparable")
|
sample("samples.collections.Arrays.Sorting.sortRangeOfArrayOfComparable")
|
||||||
}
|
}
|
||||||
specialFor(ArraysOfPrimitives) {
|
specialFor(ArraysOfPrimitives, ArraysOfUnsigned) {
|
||||||
sample("samples.collections.Arrays.Sorting.sortRangeOfArray")
|
sample("samples.collections.Arrays.Sorting.sortRangeOfArray")
|
||||||
}
|
}
|
||||||
returns("Unit")
|
returns("Unit")
|
||||||
|
|||||||
Reference in New Issue
Block a user