mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] annotate uses of Range.init(_uncheckedBounds:)
This commit is contained in:
@@ -153,7 +153,9 @@ extension StringProtocol {
|
||||
let end = endIndex
|
||||
_internalInvariant(
|
||||
start.transcodedOffset == 0 && end.transcodedOffset == 0)
|
||||
return Range(_uncheckedBounds: (start._encodedOffset, end._encodedOffset))
|
||||
return unsafe Range(
|
||||
_uncheckedBounds: (start._encodedOffset, end._encodedOffset)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user