From: Josh Bleecher Snyder Date: Sat, 11 Feb 2017 22:22:33 +0000 (-0800) Subject: testing: fix copy/paste in docs X-Git-Tag: go1.9beta1~1607 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=61e963e9c649714a88433d50afa679ec91e05e33;p=gostls13.git 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 --- diff --git a/src/testing/benchmark.go b/src/testing/benchmark.go index cac6e9fb41..3233347dcb 100644 --- a/src/testing/benchmark.go +++ b/src/testing/benchmark.go @@ -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