소스 검색

[PR #1615] Fixed compiler error in response validation sample code in README.

Vishrut Shah 9 년 전
부모
커밋
a502949e2d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -331,7 +331,7 @@ By default, Alamofire treats any completed request to be successful, regardless
 Alamofire.request("https://httpbin.org/get")
     .validate(statusCode: 200..<300)
     .validate(contentType: ["application/json"])
-    .response { response in
+    .responseData { response in
 	    switch response.result {
 	    case .success:
     	    print("Validation Successful")