We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Interval.minus
1 parent 4e2a516 commit 479946fCopy full SHA for 479946f
kotlinx.interval/src/commonMain/kotlin/Interval.kt
@@ -134,7 +134,7 @@ open class Interval<T : Comparable<T>, TSize : Comparable<TSize>>(
134
135
// If the interval to subtract ends before the end of this interval, add the remaining upper bound chunk.
136
val upperCompare: Int = upperBound.compareTo( toSubtract.upperBound )
137
- if ( upperCompare > 0 || ( upperCompare == 0 && isUpperBoundIncluded && !toSubtract.isEndIncluded ) )
+ if ( upperCompare > 0 || ( upperCompare == 0 && isUpperBoundIncluded && !toSubtract.isUpperBoundIncluded ) )
138
{
139
val upperBoundRemnant = Interval(
140
toSubtract.upperBound, !toSubtract.isUpperBoundIncluded,
0 commit comments