aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/json/decode_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/json/decode_test.go')
-rw-r--r--src/pkg/json/decode_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pkg/json/decode_test.go b/src/pkg/json/decode_test.go
index d745e8dd26..bd4326a0cd 100644
--- a/src/pkg/json/decode_test.go
+++ b/src/pkg/json/decode_test.go
@@ -6,7 +6,6 @@ package json
import (
"bytes"
- "os"
"reflect"
"strings"
"testing"
@@ -30,7 +29,7 @@ type unmarshaler struct {
T bool
}
-func (u *unmarshaler) UnmarshalJSON(b []byte) os.Error {
+func (u *unmarshaler) UnmarshalJSON(b []byte) error {
*u = unmarshaler{true} // All we need to see that UnmarshalJson is called.
return nil
}
@@ -52,7 +51,7 @@ type unmarshalTest struct {
in string
ptr interface{}
out interface{}
- err os.Error
+ err error
}
var unmarshalTests = []unmarshalTest{