Przeglądaj źródła

Fix typo: Cacher -> ResponseCacher (#3118)

emelyanovkirill 5 lat temu
rodzic
commit
040d168f2d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Documentation/AdvancedUsage.md

+ 1 - 1
Documentation/AdvancedUsage.md

@@ -306,7 +306,7 @@ AF.request(...)
 Alamofire’s `CachedResponseHandler` protocol provides control and customization over the caching of responses. In addition to per-`Session` `CachedResponseHandler`s, each `Request` can be given its own `CachedResponseHandler` which overrides any provided by the `Session`.
 
 ```swift
-let cacher = Cacher(behavior: .cache)
+let cacher = ResponseCacher(behavior: .cache)
 AF.request(...)
     .cacheResponse(using: cacher)
     .responseDecodable(of: SomeType.self) { response in