Remove redundant clause from 'until' function docs
This commit is contained in:
@@ -116,17 +116,12 @@ object RangeOps : TemplateGroupBase() {
|
||||
val progressionType = elementType.name + "Range"
|
||||
returns(progressionType)
|
||||
val minValue = if (elementType == PrimitiveType.Char) "'\\u0000'" else "$elementType.MIN_VALUE"
|
||||
val minValueRef = if (elementType == PrimitiveType.Char) "`$minValue`" else "[$minValue]"
|
||||
|
||||
doc {
|
||||
"""
|
||||
Returns a range from this value up to but excluding the specified [to] value.
|
||||
|
||||
If the [to] value is less than or equal to `this` value the returned range is empty.
|
||||
|
||||
${textWhen(elementType == toType) {
|
||||
"If the [to] value is less than or equal to $minValueRef the returned range is empty."
|
||||
}}
|
||||
If the [to] value is less than or equal to `this` value, then the returned range is empty.
|
||||
"""
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user