[stdlib] all sorts of require renamed back to precondition

This commit is contained in:
Max Moiseev
2016-02-19 18:21:29 -08:00
parent b1ef18fb75
commit 40b1a0b7e0
77 changed files with 360 additions and 378 deletions

View File

@@ -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(