Commit 926f59ba authored by Robert Griesemer's avatar Robert Griesemer

image/jpeg: fix typos

Fixes #665.

R=nigeltao, nigeltao_golang
CC=golang-dev
https://golang.org/cl/570041
parent 72a3f532
......@@ -375,7 +375,7 @@ func Decode(r io.Reader) (image.Image, os.Error) {
}
// Check for the Start Of Image marker.
_, err := io.ReadFull(r, d.tmp[0:2])
_, err := io.ReadFull(d.r, d.tmp[0:2])
if err != nil {
return nil, err
}
......@@ -385,7 +385,7 @@ func Decode(r io.Reader) (image.Image, os.Error) {
// Process the remaining segments until the End Of Image marker.
for {
_, err := io.ReadFull(r, d.tmp[0:2])
_, err := io.ReadFull(d.r, d.tmp[0:2])
if err != nil {
return nil, err
}
......@@ -399,7 +399,7 @@ func Decode(r io.Reader) (image.Image, os.Error) {
// Read the 16-bit length of the segment. The value includes the 2 bytes for the
// length itself, so we subtract 2 to get the number of remaining bytes.
_, err = io.ReadFull(r, d.tmp[0:2])
_, err = io.ReadFull(d.r, d.tmp[0:2])
if err != nil {
return nil, err
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment