mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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?
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user