aboutsummaryrefslogtreecommitdiff
path: root/src/testing/allocs.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/allocs.go')
-rw-r--r--src/testing/allocs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing/allocs.go b/src/testing/allocs.go
index 8161fad06f..ac005dd934 100644
--- a/src/testing/allocs.go
+++ b/src/testing/allocs.go
@@ -15,7 +15,7 @@ import (
// a warm-up. The average number of allocations over the specified number of
// runs will then be measured and returned.
//
-// AllocsPerRun sets GOMAXPROCS to 1 during its measurement and will restore
+// AllocsPerRun sets [runtime.GOMAXPROCS] to 1 during its measurement and will restore
// it before returning.
func AllocsPerRun(runs int, f func()) (avg float64) {
if parallelStart.Load() != parallelStop.Load() {