Skip to content

Commit a4cba4c

Browse files
author
alexpls
committed
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.
1 parent a8678b8 commit a4cba4c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ Easy way to use both [Alamofire](https://github.com/Alamofire/Alamofire) and [Sw
1111

1212
```swift
1313
Alamofire.request(.GET, "http://httpbin.org/get", parameters: ["foo": "bar"])
14-
.responseSwiftyJSON { (request, response, json, error) in
14+
.responseSwiftyJSON({ (request, response, json, error) in
1515
println(json)
1616
println(error)
17-
}
17+
})
1818

1919
```

0 commit comments

Comments
 (0)