Explorar o código

vet: correct printf verb for type bool

Julien Schmidt %!s(int64=12) %!d(string=hai) anos
pai
achega
e87cbe467d
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      utils_test.go

+ 2 - 2
utils_test.go

@@ -112,10 +112,10 @@ func TestScanNullTime(t *testing.T) {
 	for _, tst := range scanTests {
 		err = nt.Scan(tst.in)
 		if (err != nil) != tst.error {
-			t.Errorf("%v: expected error status %b, got %b", tst.in, tst.error, (err != nil))
+			t.Errorf("%v: expected error status %t, got %t", tst.in, tst.error, (err != nil))
 		}
 		if nt.Valid != tst.valid {
-			t.Errorf("%v: expected valid status %b, got %b", tst.in, tst.valid, nt.Valid)
+			t.Errorf("%v: expected valid status %t, got %t", tst.in, tst.valid, nt.Valid)
 		}
 		if nt.Time != tst.time {
 			t.Errorf("%v: expected time %v, got %v", tst.in, tst.time, nt.Time)