Incorrect documentation for rangeTo function #KT-41356
This commit is contained in:
committed by
Abduqodiri Qurbonzoda
parent
56c4a27887
commit
1c0ac850e8
@@ -31,7 +31,7 @@ private open class ComparableRange<T : Comparable<T>>(
|
|||||||
/**
|
/**
|
||||||
* Creates a range from this [Comparable] value to the specified [that] value.
|
* 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
|
* @sample samples.ranges.Ranges.rangeFromComparable
|
||||||
*/
|
*/
|
||||||
public operator fun <T : Comparable<T>> T.rangeTo(that: T): ClosedRange<T> = ComparableRange(this, that)
|
public operator fun <T : Comparable<T>> T.rangeTo(that: T): ClosedRange<T> = ComparableRange(this, that)
|
||||||
|
|||||||
Reference in New Issue
Block a user