diff --git a/libraries/stdlib/common/src/generated/_UArrays.kt b/libraries/stdlib/common/src/generated/_UArrays.kt index 30da9e3c9fa..21359111a34 100644 --- a/libraries/stdlib/common/src/generated/_UArrays.kt +++ b/libraries/stdlib/common/src/generated/_UArrays.kt @@ -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 IllegalArgumentException if [fromIndex] is greater than [toIndex]. + * + * @sample samples.collections.Arrays.Sorting.sortRangeOfArray */ @SinceKotlin("1.4") @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 IllegalArgumentException if [fromIndex] is greater than [toIndex]. + * + * @sample samples.collections.Arrays.Sorting.sortRangeOfArray */ @SinceKotlin("1.4") @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 IllegalArgumentException if [fromIndex] is greater than [toIndex]. + * + * @sample samples.collections.Arrays.Sorting.sortRangeOfArray */ @SinceKotlin("1.4") @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 IllegalArgumentException if [fromIndex] is greater than [toIndex]. + * + * @sample samples.collections.Arrays.Sorting.sortRangeOfArray */ @SinceKotlin("1.4") @ExperimentalUnsignedTypes diff --git a/libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt b/libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt index 0e03b6fb383..30da183f882 100644 --- a/libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt +++ b/libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt @@ -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. */ @@ -1326,7 +1326,7 @@ object ArrayOps : TemplateGroupBase() { specialFor(ArraysOfObjects) { sample("samples.collections.Arrays.Sorting.sortRangeOfArrayOfComparable") } - specialFor(ArraysOfPrimitives) { + specialFor(ArraysOfPrimitives, ArraysOfUnsigned) { sample("samples.collections.Arrays.Sorting.sortRangeOfArray") } returns("Unit")