mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
fixup
This commit is contained in:
@@ -283,7 +283,8 @@ extension String.UnicodeScalarView : RangeReplaceableCollection {
|
||||
>(
|
||||
bounds: Range<Index>, with newElements: C
|
||||
) {
|
||||
let rawSubRange = bounds.startIndex._position
|
||||
let rawSubRange: Range<Int> =
|
||||
bounds.startIndex._position
|
||||
..< bounds.endIndex._position
|
||||
let lazyUTF16 = newElements.lazy.flatMap { $0.utf16 }
|
||||
_core.replaceSubrange(rawSubRange, with: lazyUTF16)
|
||||
|
||||
Reference in New Issue
Block a user