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 847337e commit 47109acCopy full SHA for 47109ac
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