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 @@ -239,7 +239,7 @@ public protocol RecoverableError : Error {
239
239
/// This entry point is used for recovery of errors handled at a
240
240
/// "document" granularity, that do not affect the entire
241
241
/// application.
242
- func attemptRecovery( optionIndex recoveryOptionIndex: Int , resultHandler handler: ( _ recovered: Bool ) -> Void )
242
+ func attemptRecovery( optionIndex recoveryOptionIndex: Int , resultHandler handler: @escaping ( _ recovered: Bool ) -> Void )
243
243
244
244
/// Attempt to recover from this error when the user selected the
245
245
/// option at the given index. Returns true to indicate
@@ -256,7 +256,7 @@ public extension RecoverableError {
256
256
/// Default implementation that uses the application-model recovery
257
257
/// mechanism (``attemptRecovery(optionIndex:)``) to implement
258
258
/// document-modal recovery.
259
- func attemptRecovery( optionIndex recoveryOptionIndex: Int , resultHandler handler: ( _ recovered: Bool ) -> Void ) {
259
+ func attemptRecovery( optionIndex recoveryOptionIndex: Int , resultHandler handler: @escaping ( _ recovered: Bool ) -> Void ) {
260
260
handler ( attemptRecovery ( optionIndex: recoveryOptionIndex) )
261
261
}
262
262
}
You can’t perform that action at this time.
0 commit comments