mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
misc cleanup: gofmt + &x -> x[0:] conversion
R=gri CC=golang-dev https://golang.org/cl/1620042
This commit is contained in:
parent
f29fb251dc
commit
6aaef04469
10 changed files with 149 additions and 141 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue