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.
1 parent 32a0224 commit c0c7046Copy full SHA for c0c7046
stdlib/public/SDK/Foundation/IndexSet.swift
@@ -820,8 +820,8 @@ private struct IndexSetBoundaryIterator : IteratorProtocol {
820
// 1 has the next element, or they are the same.
821
result = nextIn1
822
if i1UsedLower { i1Range = i1.next() }
823
- // We need to iterate both the value from is1 and is2 in the == case, but only if they are both lower bounds or both upper bounds
824
- if i1UsedLower == i2UsedLower && result == nextIn2 {
+ // We need to iterate both the value from is1 and is2 in the == case.
+ if result == nextIn2 {
825
if i2UsedLower { i2Range = i2.next() }
826
i2UsedLower = !i2UsedLower
827
}
0 commit comments