Explorar o código

fix of test fix

nikandfor %!s(int64=10) %!d(string=hai) anos
pai
achega
89277b0413
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      marshal_test.go

+ 1 - 1
marshal_test.go

@@ -723,7 +723,7 @@ func TestMarshalVarint(t *testing.T) {
 			t.Errorf("marshaled varint mismatch: expected %v, got %v (test #%d)", test.Marshaled, data, i)
 		}
 
-		binder := new(uint64)
+		var binder uint64
 		err = Unmarshal(NativeType{proto: 2, typ: TypeVarint}, test.Marshaled, &binder)
 		if err != nil {
 			t.Errorf("error unmarshaling varint: %v (test #%d)", err, i)