aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/compress/bzip2/bzip2.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/compress/bzip2/bzip2.go')
-rw-r--r--libgo/go/compress/bzip2/bzip2.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/compress/bzip2/bzip2.go b/libgo/go/compress/bzip2/bzip2.go
index 343cca0..3dc8c62 100644
--- a/libgo/go/compress/bzip2/bzip2.go
+++ b/libgo/go/compress/bzip2/bzip2.go
@@ -80,7 +80,7 @@ func (bz2 *reader) Read(buf []byte) (n int, err error) {
if !bz2.setupDone {
err = bz2.setup()
- brErr := bz2.br.Error()
+ brErr := bz2.br.Err()
if brErr != nil {
err = brErr
}
@@ -91,7 +91,7 @@ func (bz2 *reader) Read(buf []byte) (n int, err error) {
}
n, err = bz2.read(buf)
- brErr := bz2.br.Error()
+ brErr := bz2.br.Err()
if brErr != nil {
err = brErr
}