Skip to content

Commit a6b80e3

Browse files
author
Jayson Ng
committed
Updated Swift usage
Updated Swift usage based on parse-community/Parse-SDK-iOS-OSX#1311
1 parent b026126 commit a6b80e3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

_includes/cloudcode/cloud-code.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,9 @@ To call the same Cloud function from an iOS app:
5858

5959
```swift
6060
// Swift
61-
PFCloud.callFunctionInBackground("averageRatings", withParameters: ["movie":"The Matrix"]) {
62-
(response: AnyObject?, error: NSError?) -> Void in
63-
let ratings = response as? Float
64-
// ratings is 4.5
61+
(response, error) in
62+
let ratings = response as? Float
63+
// ratings is 4.5
6564
}
6665
```
6766

0 commit comments

Comments
 (0)