File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ public protocol RecoverableError : Error {
267
267
/// This entry point is used for recovery of errors handled at a
268
268
/// "document" granularity, that do not affect the entire
269
269
/// application.
270
- func attemptRecovery( optionIndex recoveryOptionIndex: Int , resultHandler handler: ( _ recovered: Bool ) -> Void )
270
+ func attemptRecovery( optionIndex recoveryOptionIndex: Int , resultHandler handler: @escaping ( _ recovered: Bool ) -> Void )
271
271
272
272
/// Attempt to recover from this error when the user selected the
273
273
/// option at the given index. Returns true to indicate
@@ -284,7 +284,7 @@ public extension RecoverableError {
284
284
/// Default implementation that uses the application-model recovery
285
285
/// mechanism (``attemptRecovery(optionIndex:)``) to implement
286
286
/// document-modal recovery.
287
- func attemptRecovery( optionIndex recoveryOptionIndex: Int , resultHandler handler: ( _ recovered: Bool ) -> Void ) {
287
+ func attemptRecovery( optionIndex recoveryOptionIndex: Int , resultHandler handler: @escaping ( _ recovered: Bool ) -> Void ) {
288
288
handler ( attemptRecovery ( optionIndex: recoveryOptionIndex) )
289
289
}
290
290
}
You can’t perform that action at this time.
0 commit comments