Sfoglia il codice sorgente

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

Jonas Schmid 10 anni fa
parent
commit
d430180808
1 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  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)
+    }