Browse Source

Correct a printf verb type

% go vet
mux_test.go:1080: arg len(ancestors) for printf verb %s of wrong type:
int
pull/133/head
mitsuteru sawa 10 years ago
parent
commit
a90bbbc6fa
  1. 2
      mux_test.go

2
mux_test.go

@ -1077,7 +1077,7 @@ func TestWalkSingleDepth(t *testing.T) { @@ -1077,7 +1077,7 @@ func TestWalkSingleDepth(t *testing.T) {
return SkipRouter
}
if len(ancestors) != depths[i] {
t.Errorf(`Expected depth of %d at i = %d; got "%s"`, depths[i], i, len(ancestors))
t.Errorf(`Expected depth of %d at i = %d; got "%d"`, depths[i], i, len(ancestors))
}
if matcher.template != "/"+paths[i] {
t.Errorf(`Expected "/%s" at i = %d; got "%s"`, paths[i], i, matcher.template)

Loading…
Cancel
Save