[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

@@ -120,7 +120,7 @@ extension String {
public init<T : _SignedInteger>(
_ v: T, radix: Int, uppercase: Bool = false
) {
_require(radix > 1, "Radix must be greater than 1")
_precondition(radix > 1, "Radix must be greater than 1")
self = _int64ToString(
v.toIntMax(), radix: Int64(radix), uppercase: uppercase)
}
@@ -132,7 +132,7 @@ extension String {
public init<T : UnsignedInteger>(
_ v: T, radix: Int, uppercase: Bool = false
) {
_require(radix > 1, "Radix must be greater than 1")
_precondition(radix > 1, "Radix must be greater than 1")
self = _uint64ToString(
v.toUIntMax(), radix: Int64(radix), uppercase: uppercase)
}