diff options
author | Robert Griesemer <gri@golang.org> | 2009-12-02 11:40:54 -0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2009-12-02 11:40:54 -0800 |
commit | 5cb37dac796074804621099838a6ed524def4dee (patch) | |
tree | fb51e1797967b4cb14712f3eee8765caa64c65e0 /src/pkg/json | |
parent | bb3a6ddbaadcf5188481e5493e79073e256cc413 (diff) | |
download | golang-5cb37dac796074804621099838a6ed524def4dee.tar.gz |
apply gofmt to json files
R=rsc
http://codereview.appspot.com/164071
Diffstat (limited to 'src/pkg/json')
-rw-r--r-- | src/pkg/json/decode.go | 4 | ||||
-rw-r--r-- | src/pkg/json/decode_test.go | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/pkg/json/decode.go b/src/pkg/json/decode.go index 55659a82e..386ca0016 100644 --- a/src/pkg/json/decode.go +++ b/src/pkg/json/decode.go @@ -51,9 +51,7 @@ func (j *decoder) Int64(i int64) { j.value = float64(i) } func (j *decoder) Uint64(i uint64) { j.value = float64(i) } -func (j *decoder) Float64(f float64) { - j.value = float64(f) -} +func (j *decoder) Float64(f float64) { j.value = float64(f) } func (j *decoder) String(s string) { j.value = s } diff --git a/src/pkg/json/decode_test.go b/src/pkg/json/decode_test.go index bab95b65a..1b429b0ee 100644 --- a/src/pkg/json/decode_test.go +++ b/src/pkg/json/decode_test.go @@ -104,8 +104,8 @@ func assertResult(t *testing.T, results, expected interface{}) { } type decodeTest struct { - s string; - r interface{}; + s string; + r interface{}; } var tests = []decodeTest{ |