]> Cypherpunks repositories - gostls13.git/commitdiff
math: fix typo in Exp2 benchmark
authorCharles L. Dorian <cldorian@gmail.com>
Thu, 3 Jun 2010 22:04:22 +0000 (15:04 -0700)
committerRob Pike <r@golang.org>
Thu, 3 Jun 2010 22:04:22 +0000 (15:04 -0700)
Was timing Exp, not Exp2.

R=rsc, r
CC=golang-dev
https://golang.org/cl/1521042

src/pkg/math/all_test.go

index 15bc68e11fc0b8643f2bd5e19c576fba71de183d..9a4801b006ca2a709e375935613aac3452d839d9 100644 (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)
        }
 }