Provide code example that works with Xcode 6.3

Per issue #21, the Xcode 6.3 compiler will throw an "Ambiguous use of 'responseSwiftyJSON'" error using the original code sample provided. Simply adding parentheses around the callback method seems to keep the compiler happy.
This commit is contained in:
alexpls
2015-05-22 20:33:06 +10:00
parent a8678b8b5c
commit a4cba4c750

View File

@@ -11,9 +11,9 @@ Easy way to use both [Alamofire](https://github.com/Alamofire/Alamofire) and [Sw
```swift
Alamofire.request(.GET, "http://httpbin.org/get", parameters: ["foo": "bar"])
.responseSwiftyJSON { (request, response, json, error) in
.responseSwiftyJSON({ (request, response, json, error) in
println(json)
println(error)
}
})
```