summaryrefslogtreecommitdiff
path: root/src/pkg/json
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-06-08 17:51:57 -0700
committerRuss Cox <rsc@golang.org>2010-06-08 17:51:57 -0700
commit11704e355aa8f39669a36fe56c01d17deab60658 (patch)
tree9650da2944370ff57a40bc0accdc6665dce42722 /src/pkg/json
parente577f85b2d2908bc727a91a7a5b9f79367f3d48c (diff)
downloadgolang-11704e355aa8f39669a36fe56c01d17deab60658.tar.gz
misc cleanup: gofmt + &x -> x[0:] conversion
R=gri CC=golang-dev http://codereview.appspot.com/1620042
Diffstat (limited to 'src/pkg/json')
-rw-r--r--src/pkg/json/stream_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/json/stream_test.go b/src/pkg/json/stream_test.go
index 86d014290..ab90b754e 100644
--- a/src/pkg/json/stream_test.go
+++ b/src/pkg/json/stream_test.go
@@ -109,7 +109,7 @@ func TestRawMessage(t *testing.T) {
if err != nil {
t.Fatalf("Unmarshal: %v", err)
}
- if string(*data.Id) != raw {
+ if string([]byte(*data.Id)) != raw {
t.Fatalf("Raw mismatch: have %#q want %#q", []byte(*data.Id), raw)
}
b, err := Marshal(&data)