Skip to content

Commit e7e105d

Browse files
dmitshurgopherbot
authored andcommitted
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 <[email protected]> Reviewed-by: Tim King <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]>
1 parent 9b4947d commit e7e105d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rand/rand_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func checkSampleDistribution(t *testing.T, samples []float64, expected *statsRes
7878
actual := getStatsResults(samples)
7979
err := actual.checkSimilarDistribution(expected)
8080
if err != nil {
81-
t.Errorf(err.Error())
81+
t.Error(err)
8282
}
8383
}
8484

0 commit comments

Comments
 (0)