Skip to content

Commit aadf4a1

Browse files
committed
Do a fast NFC check over the slice instead of guts
1 parent 8bb6846 commit aadf4a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/String.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ extension _StringGutsSlice {
11691169
}
11701170

11711171
internal func _fastNFCCheck(_ isNFCQC: inout Bool, _ prevCCC: inout UInt8) {
1172-
_guts.withFastUTF8 { utf8 in
1172+
withFastUTF8 { utf8 in
11731173
var position = 0
11741174

11751175
while position < utf8.count {

0 commit comments

Comments
 (0)