summaryrefslogtreecommitdiff
path: root/libgo/go/encoding/binary/binary_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/encoding/binary/binary_test.go')
-rw-r--r--libgo/go/encoding/binary/binary_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/libgo/go/encoding/binary/binary_test.go b/libgo/go/encoding/binary/binary_test.go
index ef20605a172..e753aa0b5b6 100644
--- a/libgo/go/encoding/binary/binary_test.go
+++ b/libgo/go/encoding/binary/binary_test.go
@@ -7,8 +7,8 @@ package binary
import (
"bytes"
"io"
+ "bytes"
"math"
- "os"
"reflect"
"testing"
)
@@ -99,7 +99,7 @@ var little = []byte{
var src = []byte{1, 2, 3, 4, 5, 6, 7, 8}
var res = []int32{0x01020304, 0x05060708}
-func checkResult(t *testing.T, dir string, order ByteOrder, err os.Error, have, want interface{}) {
+func checkResult(t *testing.T, dir string, order ByteOrder, err error, have, want interface{}) {
if err != nil {
t.Errorf("%v %v: %v", dir, order, err)
return
@@ -166,7 +166,7 @@ type byteSliceReader struct {
remain []byte
}
-func (br *byteSliceReader) Read(p []byte) (int, os.Error) {
+func (br *byteSliceReader) Read(p []byte) (int, error) {
n := copy(p, br.remain)
br.remain = br.remain[n:]
return n, nil