Skip to content

Commit 95d25d3

Browse files
committed
Minor comment typo fix
1 parent 48987de commit 95d25d3

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)