瀏覽代碼

Thumbnail comment fix

disintegration 10 年之前
父節點
當前提交
05ebd029ad
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      resize.go

+ 1 - 1
resize.go

@@ -290,7 +290,7 @@ func Fit(img image.Image, width, height int, filter ResampleFilter) *image.NRGBA
 //
 // Usage example:
 //
-//		dstImage := imaging.Fit(srcImage, 100, 100, imaging.Lanczos)
+//		dstImage := imaging.Thumbnail(srcImage, 100, 100, imaging.Lanczos)
 //
 func Thumbnail(img image.Image, width, height int, filter ResampleFilter) *image.NRGBA {
 	thumbW, thumbH := width, height