aboutsummaryrefslogtreecommitdiff
path: root/src/testing/allocs.go
diff options
context:
space:
mode:
authorSean Liao <sean@liao.dev>2025-04-29 16:54:06 +0100
committerGopher Robot <gobot@golang.org>2025-04-30 08:21:07 -0700
commit8270b858ee8744e5b7584b49ae6ed93aa975c8bc (patch)
treeb93512ebbd0c93cdfedc993676273ca7cea0a1bc /src/testing/allocs.go
parent1e756dc5f73dc19eb1cbf038807d18ef1cc54ebc (diff)
downloadgo-8270b858ee8744e5b7584b49ae6ed93aa975c8bc.tar.xz
testing: use more doc links
Change-Id: Ide372735165b7510fd8d7588451a37fa743e59c1 Reviewed-on: https://go-review.googlesource.com/c/go/+/668915 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Commit-Queue: Alan Donovan <adonovan@google.com> Reviewed-by: Alan Donovan <adonovan@google.com> Auto-Submit: Alan Donovan <adonovan@google.com> Reviewed-by: Carlos Amedee <carlos@golang.org>
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() {