Skip to content

Commit

Permalink
Fix code snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket committed Nov 30, 2021
1 parent a809303 commit f9bd413
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ Credentials will automatically be renewed (if expired) using the refresh token.
> This method is thread-safe.
```swift
switch result {
credentialsManager.credentials { result in
switch result {
case .success(let credentials):
print("Obtained credentials: \(credentials)")
case .failure(let error):
Expand Down
4 changes: 2 additions & 2 deletions V2_MIGRATION_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,8 @@ credentialsManager.credentials { error, credentials in
```swift
credentialsManager.credentials { result in
switch result {
case .success(let credentials): ... // credentials retrieved
case .failure(let error): handleError(error)
case .success(let credentials): ... // credentials retrieved
case .failure(let error): handleError(error)
}
}
```
Expand Down

0 comments on commit f9bd413

Please sign in to comment.