diff options
Diffstat (limited to 'src/image/format.go')
| -rw-r--r-- | src/image/format.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/image/format.go b/src/image/format.go index 51d7ad9021..7426afb3e6 100644 --- a/src/image/format.go +++ b/src/image/format.go @@ -28,12 +28,12 @@ var ( atomicFormats atomic.Value ) -// RegisterFormat registers an image format for use by Decode. +// RegisterFormat registers an image format for use by [Decode]. // Name is the name of the format, like "jpeg" or "png". // Magic is the magic prefix that identifies the format's encoding. The magic // string can contain "?" wildcards that each match any one byte. -// Decode is the function that decodes the encoded image. -// DecodeConfig is the function that decodes just its configuration. +// [Decode] is the function that decodes the encoded image. +// [DecodeConfig] is the function that decodes just its configuration. func RegisterFormat(name, magic string, decode func(io.Reader) (Image, error), decodeConfig func(io.Reader) (Config, error)) { formatsMu.Lock() formats, _ := atomicFormats.Load().([]format) |
