]> Cypherpunks repositories - gostls13.git/commitdiff
testing: fix copy/paste in docs
authorJosh Bleecher Snyder <josharian@gmail.com>
Sat, 11 Feb 2017 22:22:33 +0000 (14:22 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Sat, 11 Feb 2017 22:56:41 +0000 (22:56 +0000)
Follow-up to CL 36791.

Change-Id: I1c4831e5dfe90c205782e970ada7faff8a009daa
Reviewed-on: https://go-review.googlesource.com/36890
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/testing/benchmark.go

index cac6e9fb4186d3fb67757faa43794dc8196462d4..3233347dcbd88236bd236573379969e2d18b7ed9 100644 (file)
@@ -332,7 +332,7 @@ func (r BenchmarkResult) AllocsPerOp() int64 {
        return int64(r.MemAllocs) / int64(r.N)
 }
 
-// AllocsPerOp returns r.MemBytes / r.N.
+// AllocedBytesPerOp returns r.MemBytes / r.N.
 func (r BenchmarkResult) AllocedBytesPerOp() int64 {
        if r.N <= 0 {
                return 0