diff options
author | Santiago M. Mola <santi@mola.io> | 2017-04-26 13:26:51 +0200 |
---|---|---|
committer | Santiago M. Mola <santi@mola.io> | 2017-04-26 13:41:46 +0200 |
commit | 45ac03181f61477d28e031725c68f938cb379554 (patch) | |
tree | e1a636db10a31df84dd05fb312586a77b860dd79 /utils/merkletrie/iter_test.go | |
parent | 9e4f992d9633dd1ac8cc0b5bcd92b377190a9a03 (diff) | |
download | go-git-45ac03181f61477d28e031725c68f938cb379554.tar.gz |
fix format string issues as found by go vet
Diffstat (limited to 'utils/merkletrie/iter_test.go')
-rw-r--r-- | utils/merkletrie/iter_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/merkletrie/iter_test.go b/utils/merkletrie/iter_test.go index ba28f0b..7e8c302 100644 --- a/utils/merkletrie/iter_test.go +++ b/utils/merkletrie/iter_test.go @@ -65,7 +65,7 @@ func (t test) run(c *C, iter *merkletrie.Iter, var obtained noder.Path var err error - for i := range t.operations { + for i, b := range t.operations { comment := Commentf("\ntree: %q\ntest #%d (%q)\noperation #%d (%q)", treeDescription, testNumber, t.operations, i, t.operations[i]) @@ -81,8 +81,8 @@ func (t test) run(c *C, iter *merkletrie.Iter, c.Assert(err, IsNil) } default: - c.Fatalf("unknown operation at test %d, operation %d (%s)\n", - testNumber, i, t.operations[i]) + c.Fatalf("unknown operation at test %d, operation %d (%c)\n", + testNumber, i, b) } if i >= len(expectedChunks) { c.Assert(err, Equals, io.EOF, comment) |