Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
godpp authored Feb 21, 2019
1 parent 15b5ee1 commit aa28b66
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ final class BoosterManager {
static func fetchLiquidOxygen(
type: String,
quantity: Int,
completion: @escaping (Result<BoosterModel>
) -> Void ) {
BoosterCenter<BoosterAPI>().request(.fetchLiquidOxygen(
completion: @escaping (Result<BoosterModel>) -> Void
) -> URLSessionDataTask {
return BoosterCenter<BoosterAPI>().request(.fetchLiquidOxygen(
type: type,
quantity: quantity
)) { (data, error) in
Expand All @@ -99,7 +99,7 @@ final class BoosterManager {

Finally, you can access an API like this:
```swift
BoosterManager.fetchLiquidOxygen(type: type, quantity: quantity) { result in
let dataTask = BoosterManager.fetchLiquidOxygen(type: type, quantity: quantity) { result in
switch result {
case .success(let resultData):
// do something with response data
Expand Down

0 comments on commit aa28b66

Please sign in to comment.