1
0
mirror of https://github.com/golang/go synced 2024-11-21 20:44:39 -07:00

math: fix typo in Exp2 benchmark

Was timing Exp, not Exp2.

R=rsc, r
CC=golang-dev
https://golang.org/cl/1521042
This commit is contained in:
Charles L. Dorian 2010-06-03 15:04:22 -07:00 committed by Rob Pike
parent 86c9aca41e
commit 3fb8d2ad84

View File

@ -2339,7 +2339,7 @@ func BenchmarkExpm1(b *testing.B) {
func BenchmarkExp2(b *testing.B) {
for i := 0; i < b.N; i++ {
Exp(.5)
Exp2(.5)
}
}