aboutsummaryrefslogtreecommitdiff
path: root/src/image
diff options
context:
space:
mode:
authorAndy Pan <panjf2000@gmail.com>2020-11-10 17:56:33 +0800
committerNigel Tao <nigeltao@golang.org>2021-02-24 01:35:53 +0000
commit0694fb3d78f9ce2add154203dbd42a7a5a07c2da (patch)
treeebd4a08cbc8c30b93d9eebe8e861578c7f45b5ba /src/image
parent6cc8aa7ece96aca282db19f08aa5c98ed13695d9 (diff)
downloadgo-0694fb3d78f9ce2add154203dbd42a7a5a07c2da.tar.gz
go-0694fb3d78f9ce2add154203dbd42a7a5a07c2da.zip
image: resolve the TODO of doc comment style
Change-Id: Ic7701a9e4635fe1a331c9a1df776ed580759eb9d Reviewed-on: https://go-review.googlesource.com/c/go/+/268758 Reviewed-by: Nigel Tao <nigeltao@golang.org> Reviewed-by: Rob Pike <r@golang.org> Trust: Nigel Tao <nigeltao@golang.org> Trust: Alberto Donizetti <alb.donizetti@gmail.com> Trust: Rob Pike <r@golang.org>
Diffstat (limited to 'src/image')
-rw-r--r--src/image/jpeg/reader.go3
-rw-r--r--src/image/png/writer.go1
2 files changed, 1 insertions, 3 deletions
diff --git a/src/image/jpeg/reader.go b/src/image/jpeg/reader.go
index 4a4706ffe7..b34072396c 100644
--- a/src/image/jpeg/reader.go
+++ b/src/image/jpeg/reader.go
@@ -14,9 +14,6 @@ import (
"io"
)
-// TODO(nigeltao): fix up the doc comment style so that sentences start with
-// the name of the type or function that they annotate.
-
// A FormatError reports that the input is not a valid JPEG.
type FormatError string
diff --git a/src/image/png/writer.go b/src/image/png/writer.go
index 53adc1633c..cbcdb9e798 100644
--- a/src/image/png/writer.go
+++ b/src/image/png/writer.go
@@ -51,6 +51,7 @@ type encoder struct {
bw *bufio.Writer
}
+// CompressionLevel indicates the compression level.
type CompressionLevel int
const (