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

testing: fix copy/paste in docs

Follow-up to CL 36791.

Change-Id: I1c4831e5dfe90c205782e970ada7faff8a009daa
Reviewed-on: https://go-review.googlesource.com/36890
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Josh Bleecher Snyder 2017-02-11 14:22:33 -08:00
parent 1cde87b312
commit 61e963e9c6

View File

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