Use fmt in BenchmarkSprintf.

This commit is contained in:
Arseny Balobanov 2020-02-22 04:28:47 +03:00
parent b5abe68bf5
commit 9e41d2fd92

View file

@ -1,6 +1,7 @@
package varfmt
import (
"fmt"
"strings"
"testing"
@ -106,7 +107,7 @@ func BenchmarkSprintf(b *testing.B) {
b.ReportAllocs()
for i := 0; i < b.N; i++ {
_ = Sprintf(tc.format, tc.args...)
_ = fmt.Sprintf(tc.format, tc.args...)
}
})
}