From 1c0ac850e854d18b3bcf15a9ac003ea3e40cf77f Mon Sep 17 00:00:00 2001 From: Abduqodiri Qurbonzoda Date: Sun, 13 Sep 2020 20:18:55 +0300 Subject: [PATCH] Incorrect documentation for `rangeTo` function #KT-41356 --- libraries/stdlib/src/kotlin/ranges/Ranges.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/stdlib/src/kotlin/ranges/Ranges.kt b/libraries/stdlib/src/kotlin/ranges/Ranges.kt index 06bdc54bd1f..05c13820de1 100644 --- a/libraries/stdlib/src/kotlin/ranges/Ranges.kt +++ b/libraries/stdlib/src/kotlin/ranges/Ranges.kt @@ -31,7 +31,7 @@ private open class ComparableRange>( /** * Creates a range from this [Comparable] value to the specified [that] value. * - * This value needs to be smaller than [that] value, otherwise the returned range will be empty. + * This value needs to be smaller than or equal to [that] value, otherwise the returned range will be empty. * @sample samples.ranges.Ranges.rangeFromComparable */ public operator fun > T.rangeTo(that: T): ClosedRange = ComparableRange(this, that)