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)