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 e7b9fbb commit 9abed8cCopy full SHA for 9abed8c
stdlib/public/core/Flatten.swift
@@ -303,7 +303,7 @@ extension FlattenCollection: Collection {
303
}
304
305
// The following combines the distance of three sections.
306
- let range = start <= end ? start ... end : end ... start
+ let range = start <= end ? start ..< end : end ..< start
307
var outer = range.lowerBound._outer
308
var count = 0 as Int // 0...Int.max
309
0 commit comments