From: Benny Siegert Date: Wed, 18 Jan 2012 22:34:37 +0000 (+1100) Subject: image/color: rename modelYCbCr to yCbCrModel. X-Git-Tag: weekly.2012-01-20~51 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=be93207c8f19a601551dd6021f13b3c964aa258a;p=gostls13.git image/color: rename modelYCbCr to yCbCrModel. This matches the other color models. It seems that this was missed during the review of 5544073. R=nigeltao, david.crawshaw CC=golang-dev https://golang.org/cl/5536057 --- diff --git a/src/pkg/image/color/ycbcr.go b/src/pkg/image/color/ycbcr.go index c6b9ba08db..4c2f29ea02 100644 --- a/src/pkg/image/color/ycbcr.go +++ b/src/pkg/image/color/ycbcr.go @@ -87,9 +87,9 @@ func (c YCbCr) RGBA() (uint32, uint32, uint32, uint32) { } // YCbCrModel is the Model for Y'CbCr colors. -var YCbCrModel Model = ModelFunc(modelYCbCr) +var YCbCrModel Model = ModelFunc(yCbCrModel) -func modelYCbCr(c Color) Color { +func yCbCrModel(c Color) Color { if _, ok := c.(YCbCr); ok { return c }