Переглянути джерело

Added missing labels to `Validation` typealias in `DownloadRequest` extension.

Christian Noon 9 роки тому
батько
коміт
2e08bb7341
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      Source/Validation.swift

+ 1 - 1
Source/Validation.swift

@@ -222,7 +222,7 @@ extension DataRequest {
 extension DownloadRequest {
     /// A closure used to validate a request that takes a URL request, a URL response, a temporary URL and a 
     /// destination URL, and returns whether the request was valid.
-    public typealias Validation = (URLRequest?, HTTPURLResponse, _ temporary: URL?, _ destination: URL?) -> ValidationResult
+    public typealias Validation = (_ request: URLRequest?, _ response: HTTPURLResponse, _ temporary: URL?, _ destination: URL?) -> ValidationResult
 
     /// Validates the request, using the specified closure.
     ///