Skip to content

Commit

Permalink
compress/gzip, compress/zlib: fix Writer documentation inconsistencies
Browse files Browse the repository at this point in the history
Fixes golang#24379.

Change-Id: Ibdc763a0c2b56e26f4269f8be429880e34a2558f
Reviewed-on: https://go-review.googlesource.com/100495
Reviewed-by: Joe Tsai <[email protected]>
  • Loading branch information
dpinela authored and bradfitz committed Mar 13, 2018
1 parent 375280f commit 0dfc740
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/compress/gzip/gzip.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/compress/zlib/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0dfc740

Please sign in to comment.