]> Cypherpunks repositories - gostls13.git/commitdiff
image/color: rename modelYCbCr to yCbCrModel.
authorBenny Siegert <bsiegert@gmail.com>
Wed, 18 Jan 2012 22:34:37 +0000 (09:34 +1100)
committerNigel Tao <nigeltao@golang.org>
Wed, 18 Jan 2012 22:34:37 +0000 (09:34 +1100)
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

src/pkg/image/color/ycbcr.go

index c6b9ba08db3726a683ac3bf5a0ae4be8a6210596..4c2f29ea021978ce3371c15540a5951c91221844 100644 (file)
@@ -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
        }