Skip to content

Commit 19f4788

Browse files
committed
modernize -fix ./...
1 parent 8de6b42 commit 19f4788

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmain_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func BenchmarkGeneratedBenchinit(b *testing.B) {
6363
rxIndexBytes := rxInitTrace.SubexpIndex("bytes")
6464
rxIndexAllocs := rxInitTrace.SubexpIndex("allocs")
6565

66-
for i := 0; i < b.N; i++ {
66+
for b.Loop() {
6767
// We only want the test binary to run the init funcs,
6868
// so the help flag is one way to stop the main func early.
6969
// TODO: we could also use TestMain to stop right away if an env var is set.

0 commit comments

Comments
 (0)