Skip to content

Commit 63a0a90

Browse files
tklausergopherbot
authored andcommitted
math/rand/v2: use max builtin in tests
Change-Id: I6d0050319c66fb62c817206e646e1a9449dc444c Reviewed-on: https://go-review.googlesource.com/c/go/+/585715 Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Tobias Klauser <[email protected]> Reviewed-by: Robert Griesemer <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Robert Griesemer <[email protected]>
1 parent 1ffc296 commit 63a0a90

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/math/rand/v2/rand_test.go

-7
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,6 @@ type statsResults struct {
3131
maxError float64
3232
}
3333

34-
func max(a, b float64) float64 {
35-
if a > b {
36-
return a
37-
}
38-
return b
39-
}
40-
4134
func nearEqual(a, b, closeEnough, maxError float64) bool {
4235
absDiff := math.Abs(a - b)
4336
if absDiff < closeEnough { // Necessary when one value is zero and one value is close to zero.

0 commit comments

Comments
 (0)