Fix Range.isEmpty doc
This commit is contained in:
@@ -92,7 +92,7 @@ public open class $progression
|
||||
|
||||
/**
|
||||
* Checks if the progression is empty.
|
||||
|
||||
*
|
||||
* Progression with a positive step is empty if its first element is greater than the last element.
|
||||
* Progression with a negative step is empty if its first element is less than the last element.
|
||||
*/
|
||||
@@ -109,7 +109,7 @@ public open class $progression
|
||||
companion object {
|
||||
/**
|
||||
* Creates $progression within the specified bounds of a closed range.
|
||||
|
||||
*
|
||||
* The progression starts with the [rangeStart] value and goes toward the [rangeEnd] value not excluding it, with the specified [step].
|
||||
* In order to go backwards the [step] must be negative.
|
||||
*
|
||||
|
||||
@@ -60,7 +60,7 @@ public class $range(start: $t, endInclusive: $t) : ${t}Progression(start, endInc
|
||||
|
||||
/**
|
||||
* Checks whether the range is empty.
|
||||
|
||||
*
|
||||
* The range is empty if its start value is greater than the end value.
|
||||
*/
|
||||
override fun isEmpty(): Boolean = first > last
|
||||
|
||||
Reference in New Issue
Block a user