mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[stdlib] all sorts of require renamed back to precondition
This commit is contained in:
@@ -947,7 +947,7 @@ extension String {
|
||||
/// format string as a template into which the remaining argument
|
||||
/// values are substituted according to given locale information.
|
||||
public init(format: String, locale: NSLocale?, arguments: [CVarArg]) {
|
||||
_require(
|
||||
_precondition(
|
||||
_countFormatSpecifiers(format) <= arguments.count,
|
||||
"Too many format specifiers (%<letter>) provided for the argument list"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user