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 cb2194c commit c67f08bCopy full SHA for c67f08b
stdlib/public/core/StringCharacterView.swift
@@ -245,11 +245,6 @@ extension String: BidirectionalCollection {
245
// Note: Prior to Swift 5.7, this function used to be inlinable, forwarding
246
// to `BidirectionalCollection._distance(from:to:)`.
247
248
- // FIXME: Due to the `index(after:)` problem above, this function doesn't
249
- // always return consistent results when the given indices fall between
250
- // grapheme breaks -- swapping `start` and `end` may change the magnitude of
251
- // the result.
252
-
253
let start = _guts.validateInclusiveCharacterIndex(start)
254
let end = _guts.validateInclusiveCharacterIndex(end)
255
0 commit comments