Skip to content

Commit 6d25d1e

Browse files
committed
[stdlib] Fix thinko
(cherry picked from commit 47109ac)
1 parent 1c1dc2b commit 6d25d1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/StringGutsRangeReplaceable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ extension _StringGuts {
466466
_internalInvariant(
467467
subrange.lowerBound >= startIndex && subrange.upperBound <= endIndex)
468468

469-
guard _slowPath(isUTF8) else {
469+
guard _fastPath(isUTF8) else {
470470
// UTF-16 string. The mutation will convert this to the native UTF-8
471471
// encoding, so we need to do some extra work to preserve our bounds.
472472
let utf8StartOffset = String(self).utf8.distance(

0 commit comments

Comments
 (0)