Преглед на файлове

[PR #1612] Fixed compilation issue in response handler section of the README.

Vishrut Shah преди 9 години
родител
ревизия
5e8b3eb22b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -242,7 +242,7 @@ Alamofire.request("https://httpbin.org/get").response { response in
     print("Response: \(response.response)")
     print("Error: \(response.data)")
 
-    if let data = data, let utf8Text = String(data: data, encoding: .utf8) {
+    if let data = response.data, let utf8Text = String(data: data, encoding: .utf8) {
     	print("Data: \(utf8Text)")
     }
 }