瀏覽代碼

Documentation thing

onevcat 9 年之前
父節點
當前提交
68964729ef
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 1 1
      Sources/ImageProcessor.swift
  2. 2 0
      Sources/ImageSerializer.swift

+ 1 - 1
Sources/ImageProcessor.swift

@@ -37,7 +37,7 @@ public enum ImageProcessItem {
     case data(Data)
 }
 
-/// An `ImageProcessor` could be used to convert some downloaded data to an image.
+/// An `ImageProcessor` would be used to convert some downloaded data to an image.
 public protocol ImageProcessor {
     /// Identifier of the processor. It will be used to identify the processor when 
     /// caching and retriving an image. You might want to make sure that processors with

+ 2 - 0
Sources/ImageSerializer.swift

@@ -26,6 +26,8 @@
 
 import Foundation
 
+/// An `CacheSerializer` would be used to convert some data to an image object for 
+/// retrieving from disk cache or vice versa for storing to disk cache.
 public protocol CacheSerializer {
     func data(with image: Image, original: Data?) -> Data?
     func image(with data: Data, options: KingfisherOptionsInfo?) -> Image?