Skip to content

Commit 948770b

Browse files
committed
fixed typo
1 parent b589802 commit 948770b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

raster/raster.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,12 @@ import (
3434
"github.com/cdillond/gdf"
3535
)
3636

37-
// A DecodeFunc reads an image fom the source reader and returns an image.Image and an error.
37+
// A DecodeFunc reads an image fom the source io.Reader and returns an image.Image and an error.
3838
// Each of the standard library's image package subdirectories contain functions that can
3939
// be used here, although alternative implementations are fine too.
4040
type DecodeFunc func(io.Reader) (image.Image, error)
4141

4242
// A DecodeConfigFunc reads from a source io.Reader and returns an image.Config and an error.
43-
// Each of the standard library's image package subdirectories contain functions that can
44-
// be used here, although alternative implementations are fine too.
4543
type DecodeConfigFunc func(io.Reader) (image.Config, error)
4644

4745
// A Decoder is a struct that can read gdf.XImages from source bytes. Most image
@@ -77,7 +75,7 @@ type rgba64 interface {
7775
}
7876

7977
// The standard library's image package treats RGBA64 as a sort of lingua franca for images.
80-
// It's not ideal, especially for images with 8-bit depth, but it does the trick. Images with formats
78+
// It's not ideal, especially for images with 8-bit depth, but it does the trick for images with formats
8179
// that don't cleanly map to PDF image headers.
8280
func processImage(img rgba64, box image.Rectangle, cfg image.Config) (colors, alpha []byte, hasAlpha bool) {
8381
var p, q int

0 commit comments

Comments
 (0)