Permalink
Browse files

[PR #1844] Fixed URLConvertible compiler issue in the README example.

  • Loading branch information...
1 parent 7f14105 commit 05c9bcdcf4e661068b33883cb4bda183e4539402 @zhongwuzw zhongwuzw committed with cnoon Dec 19, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
@@ -1012,8 +1012,8 @@ Alamofire.request(urlString, method: .post)
let url = URL(string: urlString)!
Alamofire.request(url, method: .post)
-let urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: true)
-Alamofire.request(.post, URLComponents)
+let urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: true)!
+Alamofire.request(urlComponents, method: .post)
```
Applications interacting with web applications in a significant manner are encouraged to have custom types conform to `URLConvertible` as a convenient way to map domain-specific models to server resources.

0 comments on commit 05c9bcd

Please sign in to comment.