]> Cypherpunks repositories - gostls13.git/commitdiff
compress/gzip, compress/zlib: fix Writer documentation inconsistencies
authorDiogo Pinela <diogoid7400@gmail.com>
Tue, 13 Mar 2018 20:44:51 +0000 (20:44 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 13 Mar 2018 20:58:19 +0000 (20:58 +0000)
Fixes #24379.

Change-Id: Ibdc763a0c2b56e26f4269f8be429880e34a2558f
Reviewed-on: https://go-review.googlesource.com/100495
Reviewed-by: Joe Tsai <joetsai@google.com>
src/compress/gzip/gzip.go
src/compress/zlib/writer.go

index 0cc44c59e0f5504303a15e5478491d6a917987ab..db9750dee2278f1a080a792c9b3baebf7be719eb 100644 (file)
@@ -41,7 +41,7 @@ type Writer struct {
 // NewWriter returns a new Writer.
 // Writes to the returned writer are compressed and written to w.
 //
-// It is the caller's responsibility to call Close on the WriteCloser when done.
+// It is the caller's responsibility to call Close on the Writer when done.
 // Writes may be buffered and not flushed until Close.
 //
 // Callers that wish to set the fields in Writer.Header must do so before
index 1620c00c523eb0adb1cd786368e455f6bc28dd41..a7b219467ee007273dff14e1e70547d3ca4001b8 100644 (file)
@@ -38,7 +38,7 @@ type Writer struct {
 // NewWriter creates a new Writer.
 // Writes to the returned Writer are compressed and written to w.
 //
-// It is the caller's responsibility to call Close on the WriteCloser when done.
+// It is the caller's responsibility to call Close on the Writer when done.
 // Writes may be buffered and not flushed until Close.
 func NewWriter(w io.Writer) *Writer {
        z, _ := NewWriterLevelDict(w, DefaultCompression, nil)