]> Cypherpunks repositories - gostls13.git/commitdiff
image: fix obsolete reference in PalettedImage doc comment
authorAndrew Ekstedt <andrew.ekstedt@gmail.com>
Mon, 26 Jan 2015 08:39:49 +0000 (00:39 -0800)
committerNigel Tao <nigeltao@golang.org>
Fri, 6 Feb 2015 04:06:44 +0000 (04:06 +0000)
PalettedColorModel was renamed to color.Palette
over three years ago by https://golang.org/cl/5132048.

Change-Id: I0204ade10eabff45620fda2990fed428c65d871e
Reviewed-on: https://go-review.googlesource.com/3305
Reviewed-by: Minux Ma <minux@golang.org>
Reviewed-by: Nigel Tao <nigeltao@golang.org>
src/image/image.go

index e0ecd92baaccc104747d534d229706222e8e5b69..951cc8ae054eac9f989bc78bfcbf26b468f8a01a 100644 (file)
@@ -46,9 +46,9 @@ type Image interface {
 }
 
 // PalettedImage is an image whose colors may come from a limited palette.
-// If m is a PalettedImage and m.ColorModel() returns a PalettedColorModel p,
+// If m is a PalettedImage and m.ColorModel() returns a color.Palette p,
 // then m.At(x, y) should be equivalent to p[m.ColorIndexAt(x, y)]. If m's
-// color model is not a PalettedColorModel, then ColorIndexAt's behavior is
+// color model is not a color.Palette, then ColorIndexAt's behavior is
 // undefined.
 type PalettedImage interface {
        // ColorIndexAt returns the palette index of the pixel at (x, y).