From: Andy Pan Date: Tue, 10 Nov 2020 09:56:33 +0000 (+0800) Subject: image: resolve the TODO of doc comment style X-Git-Tag: go1.17beta1~1407 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0694fb3d78f9ce2add154203dbd42a7a5a07c2da;p=gostls13.git 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 Reviewed-by: Rob Pike Trust: Nigel Tao Trust: Alberto Donizetti Trust: Rob Pike --- 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 (