Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shoumikhin authored Feb 26, 2018
1 parent 75aa9e4 commit dc3f5fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions g3doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ Swift:
```swift
func newAsyncMethodReturningAPromise() -> Promise<Data> {
return Promise.resolve { handler in
return resolve { handler in
MyClient.wrappedAsyncMethodWithTypical(completion: handler)
}
}
Expand Down Expand Up @@ -1445,7 +1445,7 @@ Promise<String>(objc.getString()).then { string in
print(number)
}
Promise.resolve { handler in
resolve { handler in
objc.async(with: "hello", and: 42, completion: handler)
}.then { _ in
print("Success.")
Expand Down

0 comments on commit dc3f5fc

Please sign in to comment.