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.
2 parents 5227984 + 380c4e5 commit 6bd2b0bCopy full SHA for 6bd2b0b
stdlib/public/core/Collection.swift
@@ -451,14 +451,14 @@ extension CollectionType {
451
while subSequenceEnd != cachedEndIndex {
452
if try isSeparator(self[subSequenceEnd]) {
453
let didAppend = appendSubsequence(end: subSequenceEnd)
454
- ++subSequenceEnd
+ subSequenceEnd._successorInPlace()
455
subSequenceStart = subSequenceEnd
456
if didAppend && result.count == maxSplit {
457
break
458
}
459
continue
460
461
462
463
464
if subSequenceStart != cachedEndIndex || allowEmptySlices {
0 commit comments