mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
throughout: fix broken calls to Printf etc.
I have written a tool to verify Printf calls, and although it's not ready to be reviewed yet it's already uncovered a spate of problems in the repository. I'm sending this CL to break the changes into pieces; as the tool improves it will find more, I'm sure. R=rsc CC=golang-dev https://golang.org/cl/3427043
This commit is contained in:
parent
ab7884da7e
commit
1ce6245d6c
25 changed files with 114 additions and 114 deletions
|
|
@ -71,10 +71,10 @@ func TestDecoder(t *testing.T) {
|
|||
}
|
||||
}
|
||||
if !reflect.DeepEqual(out, streamTest[0:i]) {
|
||||
t.Errorf("decoding %d items: mismatch")
|
||||
t.Errorf("decoding %d items: mismatch", i)
|
||||
for j := range out {
|
||||
if !reflect.DeepEqual(out[j], streamTest[j]) {
|
||||
t.Errorf("#%d: have %v want %v", out[j], streamTest[j])
|
||||
t.Errorf("#%d: have %v want %v", j, out[j], streamTest[j])
|
||||
}
|
||||
}
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue