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 1c1dc2b commit 6d25d1eCopy full SHA for 6d25d1e
stdlib/public/core/StringGutsRangeReplaceable.swift
@@ -466,7 +466,7 @@ extension _StringGuts {
466
_internalInvariant(
467
subrange.lowerBound >= startIndex && subrange.upperBound <= endIndex)
468
469
- guard _slowPath(isUTF8) else {
+ guard _fastPath(isUTF8) else {
470
// UTF-16 string. The mutation will convert this to the native UTF-8
471
// encoding, so we need to do some extra work to preserve our bounds.
472
let utf8StartOffset = String(self).utf8.distance(
0 commit comments