Authored by DreamPiggy

Fix the documentation issue about cacheSerializer

@@ -220,7 +220,7 @@ SDWebImageManager.sharedManager.cacheKeyFilter = ^(NSURL * _Nullable url) { @@ -220,7 +220,7 @@ SDWebImageManager.sharedManager.cacheKeyFilter = ^(NSURL * _Nullable url) {
220 * @note The `image` arg is nonnull, but when you also provide a image transformer and the image is transformed, the `data` arg may be nil, take attention to this case. 220 * @note The `image` arg is nonnull, but when you also provide a image transformer and the image is transformed, the `data` arg may be nil, take attention to this case.
221 * @note This method is called from a global queue in order to not to block the main thread. 221 * @note This method is called from a global queue in order to not to block the main thread.
222 * @code 222 * @code
223 - SDWebImageManager.sharedManager.cacheKeyFilter = ^NSData * _Nullable(UIImage * _Nonnull image, NSData * _Nullable data, NSURL * _Nullable imageURL) { 223 + SDWebImageManager.sharedManager.cacheSerializer = ^NSData * _Nullable(UIImage * _Nonnull image, NSData * _Nullable data, NSURL * _Nullable imageURL) {
224 SDImageFormat format = [NSData sd_imageFormatForImageData:data]; 224 SDImageFormat format = [NSData sd_imageFormatForImageData:data];
225 switch (format) { 225 switch (format) {
226 case SDImageFormatWebP: 226 case SDImageFormatWebP: