]> Cypherpunks repositories - gostls13.git/commitdiff
cgo: fix incorrect print found by govet
authorRobert Hencke <robert.hencke@gmail.com>
Tue, 29 Nov 2011 03:40:34 +0000 (14:40 +1100)
committerAndrew Gerrand <adg@golang.org>
Tue, 29 Nov 2011 03:40:34 +0000 (14:40 +1100)
R=golang-dev
CC=golang-dev
https://golang.org/cl/5445052

misc/cgo/test/helpers.go

index de14d19abf4189d70d3aacd7c655da1154f54920..890dcbdf1d8486d59c309e875eef11bf75b7ea6b 100644 (file)
@@ -29,7 +29,7 @@ var testPairs = []testPair{
 func testHelpers(t *testing.T) {
        for _, pair := range testPairs {
                if !reflect.DeepEqual(pair.Got, pair.Want) {
-                       t.Errorf("%s: got %#v, want %#v", pair.Got, pair.Want)
+                       t.Errorf("%s: got %#v, want %#v", pair.Name, pair.Got, pair.Want)
                }
        }
 }