Skip to content

Commit

Permalink
Fix broken doc comments on tryRecover
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyball committed Nov 26, 2019
1 parent cf758f0 commit b228ce2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/Promise.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1433,7 +1433,7 @@ extension Promise where Error == Swift.Error {
/// Registers a callback that is invoked when the promise is rejected.
///
/// Unlike `catch(on:_:)` this callback can recover from the error and return a new value.
//
///
/// - Parameter context: The context to invoke the callback on.
/// - Parameter token: An optional `PromiseInvalidatonToken`. If provided, calling
/// `invalidate()` on the token will prevent `onError` from being invoked. If the promise is
Expand Down
2 changes: 1 addition & 1 deletion Sources/TokenPromise.swift
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ extension TokenPromise where Error == Swift.Error {
/// Registers a callback that is invoked when the promise is rejected.
///
/// Unlike `catch(on:_:)` this callback can recover from the error and return a new value.
//
///
/// - Parameter context: The context to invoke the callback on.
/// - Parameter onError: The callback that is invoked with the rejected error.
/// - Returns: A new promise that will be fulfilled with the return value of `onError`, or
Expand Down

0 comments on commit b228ce2

Please sign in to comment.