From 61e963e9c649714a88433d50afa679ec91e05e33 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Sat, 11 Feb 2017 14:22:33 -0800 Subject: [PATCH] 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 --- src/testing/benchmark.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.48.1