From 9e41d2fd92889ae011843ea7470fad8540524cbc Mon Sep 17 00:00:00 2001 From: Arseny Balobanov Date: Sat, 22 Feb 2020 04:28:47 +0300 Subject: [PATCH] Use fmt in BenchmarkSprintf. --- varfmt/fmt_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/varfmt/fmt_test.go b/varfmt/fmt_test.go index fb137be..be1f324 100644 --- a/varfmt/fmt_test.go +++ b/varfmt/fmt_test.go @@ -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...) } }) }