aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/compress
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2014-10-27 16:57:33 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2014-10-27 16:57:33 +0000
commit50a504654d2c54b270615541ab66af7c4f3d664f (patch)
treecffb8bafa3b597c0dcc89a2c0d23dd3e16e6db3b /libgo/go/compress
parentfc72cba7ce5bbd350249dd5de10bc9eaa1633a8e (diff)
downloadgcc-50a504654d2c54b270615541ab66af7c4f3d664f.zip
gcc-50a504654d2c54b270615541ab66af7c4f3d664f.tar.gz
gcc-50a504654d2c54b270615541ab66af7c4f3d664f.tar.bz2
libgo: Update to Go 1.3.3 release.
From-SVN: r216746
Diffstat (limited to 'libgo/go/compress')
-rw-r--r--libgo/go/compress/gzip/gzip.go3
-rw-r--r--libgo/go/compress/zlib/writer.go3
2 files changed, 4 insertions, 2 deletions
diff --git a/libgo/go/compress/gzip/gzip.go b/libgo/go/compress/gzip/gzip.go
index 3a0bf54..5131d12 100644
--- a/libgo/go/compress/gzip/gzip.go
+++ b/libgo/go/compress/gzip/gzip.go
@@ -245,7 +245,8 @@ func (z *Writer) Flush() error {
return z.err
}
-// Close closes the Writer. It does not close the underlying io.Writer.
+// Close closes the Writer, flushing any unwritten data to the underlying
+// io.Writer, but does not close the underlying io.Writer.
func (z *Writer) Close() error {
if z.err != nil {
return z.err
diff --git a/libgo/go/compress/zlib/writer.go b/libgo/go/compress/zlib/writer.go
index fac7e15..3b4313a 100644
--- a/libgo/go/compress/zlib/writer.go
+++ b/libgo/go/compress/zlib/writer.go
@@ -174,7 +174,8 @@ func (z *Writer) Flush() error {
return z.err
}
-// Calling Close does not close the wrapped io.Writer originally passed to NewWriter.
+// Close closes the Writer, flushing any unwritten data to the underlying
+// io.Writer, but does not close the underlying io.Writer.
func (z *Writer) Close() error {
if !z.wroteHeader {
z.err = z.writeHeader()