Prechádzať zdrojové kódy

[PR 726] Updated the playground to use the result type.

Jonas Schmid 10 rokov pred
rodič
commit
d430180808
1 zmenil súbory, kde vykonal 5 pridanie a 5 odobranie
  1. 5 5
      Alamofire.playground/section-1.swift

+ 5 - 5
Alamofire.playground/section-1.swift

@@ -6,8 +6,8 @@ import XCPlayground
 XCPSetExecutionShouldContinueIndefinitely()
 
 Alamofire.request(.GET, "https://httpbin.org/get", parameters: ["foo": "bar"])
-         .responseString { request, response, string, _ in
-             print(request)
-             print(response)
-             print(string)
-         }
+    .responseString { request, response, result in
+        print(request)
+        print(response)
+        debugPrint(result)
+    }