我创建了以下方法:
class func getAEDbyReference(reference: String, completionHandler: (Result<AED, NSError>) -> Void {
Alamofire.request(Router.GetAED(reference)).responseObject{(response: Response<AED, NSError>) in
completionHandler(response.result)
}
我得到的错误是:Expected ',' separator
但为什么呢?我没有看到错误
答案 0 :(得分:1)
在Void
class func getAEDbyReference(reference: String, completionHandler: (Result<AED, NSError>) -> Void) {
Alamofire.request(Router.GetAED(reference)).responseObject{(response: Response<AED, NSError>) in
completionHandler(response.result)
}