]> Cypherpunks repositories - gostls13.git/commitdiff
image: minor update of comments.
authorRobin Eklind <r.eklind.87@gmail.com>
Tue, 14 May 2013 20:28:16 +0000 (13:28 -0700)
committerNigel Tao <nigeltao@golang.org>
Tue, 14 May 2013 20:28:16 +0000 (13:28 -0700)
R=golang-dev, iant, bradfitz, nigeltao
CC=golang-dev
https://golang.org/cl/9408044

src/pkg/image/format.go

index 36635bcc538fed6bbbe1a8d102194016fb3a5c5d..3040247f1f163a46f92248885a0c522f5ab6e232 100644 (file)
@@ -73,7 +73,7 @@ func sniff(r reader) format {
 
 // Decode decodes an image that has been encoded in a registered format.
 // The string returned is the format name used during format registration.
-// Format registration is typically done by the init method of the codec-
+// Format registration is typically done by an init function in the codec-
 // specific package.
 func Decode(r io.Reader) (Image, string, error) {
        rr := asReader(r)
@@ -88,7 +88,7 @@ func Decode(r io.Reader) (Image, string, error) {
 // DecodeConfig decodes the color model and dimensions of an image that has
 // been encoded in a registered format. The string returned is the format name
 // used during format registration. Format registration is typically done by
-// the init method of the codec-specific package.
+// an init function in the codec-specific package.
 func DecodeConfig(r io.Reader) (Config, string, error) {
        rr := asReader(r)
        f := sniff(rr)