Remove redundant clause from 'until' function docs

This commit is contained in:
Ilya Gorbunov
2018-12-22 07:26:39 +03:00
parent 022b21efa0
commit 9289a2c573
3 changed files with 22 additions and 47 deletions
@@ -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.
"""
}