From 69cc3646b96e61de0b417f4815b86c36e65783ee Mon Sep 17 00:00:00 2001 From: Igor Zhilianin Date: Tue, 30 Oct 2018 00:08:48 +0000 Subject: [PATCH] all: fix typos Change-Id: I2140a1a74d1319d9b8746efad539bfaae6038a2d GitHub-Last-Rev: b00b49e87ed3adb72d11c81e4cff98671d411b52 GitHub-Pull-Request: golang/image#1 Reviewed-on: https://go-review.googlesource.com/c/145740 Reviewed-by: Ian Lance Taylor --- draw/scale.go | 2 +- tiff/reader.go | 2 +- vp8/decode.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/draw/scale.go b/draw/scale.go index 98ab404..3fc30c4 100644 --- a/draw/scale.go +++ b/draw/scale.go @@ -65,7 +65,7 @@ type Options struct { // the src image are drawn from. // // A dst or src mask image having a zero alpha (transparent) pixel value in - // the respective coordinate space means that that dst pixel is entirely + // the respective coordinate space means that dst pixel is entirely // unaffected or that src pixel is considered transparent black. A full // alpha (opaque) value means that the dst pixel is maximally affected or // the src pixel contributes maximally. The default values, nil, are diff --git a/tiff/reader.go b/tiff/reader.go index 8a941c1..ce2ef71 100644 --- a/tiff/reader.go +++ b/tiff/reader.go @@ -110,7 +110,7 @@ func (d *decoder) ifdUint(p []byte) (u []uint, err error) { return u, nil } -// parseIFD decides whether the the IFD entry in p is "interesting" and +// parseIFD decides whether the IFD entry in p is "interesting" and // stows away the data in the decoder. It returns the tag number of the // entry and an error, if any. func (d *decoder) parseIFD(p []byte) (int, error) { diff --git a/vp8/decode.go b/vp8/decode.go index 1bb5028..2aa9fee 100644 --- a/vp8/decode.go +++ b/vp8/decode.go @@ -82,7 +82,7 @@ type mb struct { pred [4]uint8 // nzMask is a mask of 8 bits: 4 for the bottom or right 4x4 luma regions, // and 2 + 2 for the bottom or right 4x4 chroma regions. A 1 bit indicates - // that that region has non-zero coefficients. + // that region has non-zero coefficients. nzMask uint8 // nzY16 is a 0/1 value that is 1 if the macroblock used Y16 prediction and // had non-zero coefficients. @@ -274,7 +274,7 @@ func (d *Decoder) parseOtherPartitions() error { var partLens [maxNOP]int d.nOP = 1 << d.fp.readUint(uniformProb, 2) - // The final partition length is implied by the the remaining chunk data + // The final partition length is implied by the remaining chunk data // (d.r.n) and the other d.nOP-1 partition lengths. Those d.nOP-1 partition // lengths are stored as 24-bit uints, i.e. up to 16 MiB per partition. n := 3 * (d.nOP - 1)