Skip to content

Commit d0b68a5

Browse files
authored
Merge pull request #62109 from valeriyvan/fixTypo
2 parents 91fd5f8 + 95d25d3 commit d0b68a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/Substring.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ extension Substring: StringProtocol {
395395
i = _uncheckedIndex(after: i)
396396
}
397397
} else if i > end {
398-
while i > end { // Note `<` instead of `==`
398+
while i > end { // Note `>` instead of `==`
399399
count -= 1
400400
i = _uncheckedIndex(before: i)
401401
}

0 commit comments

Comments
 (0)