stdlib/Assert: adopt new names for trapping functions:

assert() / assertionFailure() -- debug mode
precondition() / preconditionFailure() -- debug and release modes
fatalError() -- always traps


Swift SVN r20890
This commit is contained in:
Dmitri Hrybenko
2014-08-01 10:22:23 +00:00
parent f41361ca29
commit a79339ee8f
13 changed files with 306 additions and 95 deletions

View File

@@ -58,7 +58,7 @@ public protocol GeneratorType /* : SequenceType */ {
/// Note: after `next()` on an arbitrary generator has returned
/// `nil`, subsequent calls to `next()` have unspecified behavior.
/// Specific implementations of this protocol are encouraged to
/// respond by calling `trap("...")`.
/// respond by calling `preconditionFailure("...")`.
mutating func next() -> Element?
}