fix typo in ToRGBA doc

This commit is contained in:
faiface 2017-05-21 19:33:01 +02:00
parent bf6e20a04b
commit bc08b65073
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ func (c RGBA) RGBA() (r, g, b, a uint32) {
}
// ToRGBA converts a color to RGBA format. Using this function is preferred to using RGBAModel, for
// performance (using RGBAModel introduced additional unnecessary allocations).
// performance (using RGBAModel introduces additional unnecessary allocations).
func ToRGBA(c color.Color) RGBA {
if c, ok := c.(RGBA); ok {
return c