src/pkg/[a-m]*: gofix -r error -force=error

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/5322051
This commit is contained in:
Russ Cox 2011-11-01 22:04:37 -04:00
parent 68050ac76b
commit c2049d2dfe
283 changed files with 2323 additions and 2464 deletions

View file

@ -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{