From e7e105dedf7e2bd7a7db7003ed6711b3337f26b8 Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Wed, 4 Sep 2024 18:59:32 -0400 Subject: [PATCH] rand: fix printf(var) mistake detected by latest printf checker For golang/go#69267. Change-Id: I28b189236bfa7a7efc4a11a8585d358fbce75ec1 Reviewed-on: https://go-review.googlesource.com/c/exp/+/610935 LUCI-TryBot-Result: Go LUCI Reviewed-by: Tim King Reviewed-by: Dmitri Shuralyov Auto-Submit: Dmitri Shuralyov --- rand/rand_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rand/rand_test.go b/rand/rand_test.go index 4383e4fb2..276a55fb5 100644 --- a/rand/rand_test.go +++ b/rand/rand_test.go @@ -78,7 +78,7 @@ func checkSampleDistribution(t *testing.T, samples []float64, expected *statsRes actual := getStatsResults(samples) err := actual.checkSimilarDistribution(expected) if err != nil { - t.Errorf(err.Error()) + t.Error(err) } }