Explorar o código

doc: fix CachedResponseHandler ResponseCacher documentation (#3476)

This commit changes the notion of Follow by the notion of Cache. It
tries to follow the convention used in Redirector from
RedirectHandler.swift.
Romain Bertozzi %!s(int64=4) %!d(string=hai) anos
pai
achega
4a299e3492
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Source/CachedResponseHandler.swift

+ 2 - 2
Source/CachedResponseHandler.swift

@@ -58,9 +58,9 @@ public struct ResponseCacher {
         case modify((URLSessionDataTask, CachedURLResponse) -> CachedURLResponse?)
     }
 
-    /// Returns a `ResponseCacher` with a follow `Behavior`.
+    /// Returns a `ResponseCacher` with a `.cache` `Behavior`.
     public static let cache = ResponseCacher(behavior: .cache)
-    /// Returns a `ResponseCacher` with a do not follow `Behavior`.
+    /// Returns a `ResponseCacher` with a `.doNotCache` `Behavior`.
     public static let doNotCache = ResponseCacher(behavior: .doNotCache)
 
     /// The `Behavior` of the `ResponseCacher`.