mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] all sorts of require renamed back to precondition
This commit is contained in:
@@ -226,7 +226,7 @@ public final class _NSContiguousString : _SwiftNativeNSString {
|
||||
buffer: UnsafeMutablePointer<UInt16>,
|
||||
range aRange: _SwiftNSRange) {
|
||||
|
||||
_require(aRange.location + aRange.length <= Int(_core.count))
|
||||
_precondition(aRange.location + aRange.length <= Int(_core.count))
|
||||
|
||||
if _core.elementWidth == 2 {
|
||||
UTF16._copy(
|
||||
|
||||
Reference in New Issue
Block a user