Skip to content

Commit

Permalink
Merge pull request Moya#1997 from emmanuelkehinde/fix-typo-in-doc
Browse files Browse the repository at this point in the history
Fix a typo in the request function
  • Loading branch information
LucianoPAlmeida authored Feb 21, 2020
2 parents 9373133 + ffca8e0 commit c886fa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Examples/ComposingProvider.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ final class OnlineProvider<Target> where Target: Moya.TargetType {
Now we need a method to perform the request

```swift
func request(_ token: Taget) -> Single<Moya.Response> {
func request(_ token: Target) -> Single<Moya.Response> {
let actualRequest = provider.rx.request(token)

return online
Expand Down Expand Up @@ -61,4 +61,4 @@ let myServiceProvider = OnlineProvider(endpointClosure: endpointClosure, plugins
myServiceProvider.request(MyAPI.users)
```

For a more detailed example, you can look at [Artsy's implementation](https://github.com/artsy/eidolon/blob/master/Kiosk/App/Networking/Networking.swift).
For a more detailed example, you can look at [Artsy's implementation](https://github.com/artsy/eidolon/blob/master/Kiosk/App/Networking/Networking.swift).

0 comments on commit c886fa2

Please sign in to comment.