@@ -100,11 +100,7 @@ public func precondition(
100
100
101
101
/// Indicates that an internal sanity check failed.
102
102
///
103
- /// Use this function to stop the program, without impacting the performance of
104
- /// shipping code, when control flow is not expected to reach the call---for
105
- /// example, in the `default` case of a `switch` where you have knowledge that
106
- /// one of the other cases must be satisfied. To protect code from invalid
107
- /// usage in Release builds, see `preconditionFailure(_:file:line:)`.
103
+ /// This function's effect varies depending on the build flag used:
108
104
///
109
105
/// * In playgrounds and `-Onone` builds (the default for Xcode's Debug
110
106
/// configuration), stop program execution in a debuggable state after
@@ -141,8 +137,11 @@ public func assertionFailure(
141
137
/// Indicates that a precondition was violated.
142
138
///
143
139
/// Use this function to stop the program when control flow can only reach the
144
- /// call if your API was improperly used. This function's effects vary
145
- /// depending on the build flag used:
140
+ /// call if your API was improperly used and execution flow is not expected to
141
+ /// reach the call---for example, in the `default` case of a `switch` where
142
+ /// you have knowledge that one of the other cases must be satisfied.
143
+ ///
144
+ /// This function's effect varies depending on the build flag used:
146
145
///
147
146
/// * In playgrounds and `-Onone` builds (the default for Xcode's Debug
148
147
/// configuration), stops program execution in a debuggable state after
0 commit comments