]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix a nit found by vet
authorMikio Hara <mikioh.mikioh@gmail.com>
Sat, 18 Apr 2015 01:44:42 +0000 (10:44 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Sun, 19 Apr 2015 10:45:49 +0000 (10:45 +0000)
Change-Id: Ic965b48bdc0e0ffba9bed5ff6b3d28ff742f8b2d
Reviewed-on: https://go-review.googlesource.com/9100
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/net/ipsock_test.go

index 9d6897516638255b30a7738b06cab7798488ebc8..c06f15e846fb5dbbf6d0458de109b994c96bc7f6 100644 (file)
@@ -226,7 +226,7 @@ func TestAddrList(t *testing.T) {
                }
                if tt.err != nil {
                        if len(addrs) != 0 {
-                               t.Errorf("#%v: got %v; want 0", len(addrs))
+                               t.Errorf("#%v: got %v; want 0", i, len(addrs))
                        }
                        continue
                }