Incorrect documentation for rangeTo function #KT-41356

This commit is contained in:
Abduqodiri Qurbonzoda
2020-09-13 20:18:55 +03:00
committed by Abduqodiri Qurbonzoda
parent 56c4a27887
commit 1c0ac850e8
+1 -1
View File
@@ -31,7 +31,7 @@ private open class ComparableRange<T : Comparable<T>>(
/**
* 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 : Comparable<T>> T.rangeTo(that: T): ClosedRange<T> = ComparableRange(this, that)