aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Hencke <robert.hencke@gmail.com>2011-11-29 14:40:34 +1100
committerAndrew Gerrand <adg@golang.org>2011-11-29 14:40:34 +1100
commitb2329e997bd64a8a0a9b7800665fb7f3cc9c6bda (patch)
treeac1c0f891d5fb4e4c919bfe817d7467fadfdfcfe
parentfbdec642a980d73cdd7dbfd18018f18c6d198ffc (diff)
downloadgo-b2329e997bd64a8a0a9b7800665fb7f3cc9c6bda.tar.gz
go-b2329e997bd64a8a0a9b7800665fb7f3cc9c6bda.zip
cgo: fix incorrect print found by govet
R=golang-dev CC=golang-dev https://golang.org/cl/5445052
-rw-r--r--misc/cgo/test/helpers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/cgo/test/helpers.go b/misc/cgo/test/helpers.go
index de14d19abf..890dcbdf1d 100644
--- a/misc/cgo/test/helpers.go
+++ b/misc/cgo/test/helpers.go
@@ -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)
}
}
}