Skip to content

Commit

Permalink
Typo in the example code - one missing ( (Alamofire#2445)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardgroves authored and jshier committed Feb 26, 2018
1 parent 644b1f5 commit cd44768
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/AdvancedUsage.md
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ Alamofire provides built-in response serialization for data, strings, JSON, and
Alamofire.request(...).responseData { (resp: DataResponse<Data>) in ... }
Alamofire.request(...).responseString { (resp: DataResponse<String>) in ... }
Alamofire.request(...).responseJSON { (resp: DataResponse<Any>) in ... }
Alamofire.request(...).responsePropertyList { resp: DataResponse<Any>) in ... }
Alamofire.request(...).responsePropertyList { (resp: DataResponse<Any>) in ... }
```

Those responses wrap deserialized *values* (Data, String, Any) or *errors* (network, validation errors), as well as *meta-data* (URL request, HTTP headers, status code, [metrics](#statistical-metrics), ...).
Expand Down Expand Up @@ -936,4 +936,4 @@ There are some important things to remember when using network reachability to d
- The network reachability status can be useful for determining why a network request may have failed.
- If a network request fails, it is more useful to tell the user that the network request failed due to being offline rather than a more technical error, such as "request timed out."

> It is recommended to check out [WWDC 2012 Session 706, "Networking Best Practices"](https://developer.apple.com/videos/play/wwdc2012-706/) for more info.
> It is recommended to check out [WWDC 2012 Session 706, "Networking Best Practices"](https://developer.apple.com/videos/play/wwdc2012-706/) for more info.

0 comments on commit cd44768

Please sign in to comment.