1
0
mirror of https://github.com/golang/go synced 2024-11-21 23:14:40 -07:00

all: errors caught by go vet

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5674069
This commit is contained in:
Rob Pike 2012-02-16 17:21:21 +11:00
parent e8edf84d81
commit 21be71a419
2 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ func testErrno(t *testing.T) {
t.Fatalf("C.fopen: should fail")
}
if err != os.ENOENT {
t.Fatalf("C.fopen: unexpected error: ", err)
t.Fatalf("C.fopen: unexpected error: %v", err)
}
}

View File

@ -487,7 +487,7 @@ func testbasic() {
mipM[i][i]++
if mipM[i][i] != (i+1)+1 {
fmt.Printf("update mipM[%d][%d] = %i\n", i, i, mipM[i][i])
fmt.Printf("update mipM[%d][%d] = %d\n", i, i, mipM[i][i])
}
}