aboutsummaryrefslogtreecommitdiff
path: root/src/weak
diff options
context:
space:
mode:
authorMichael Anthony Knyszek <mknyszek@google.com>2024-12-23 20:42:42 +0000
committerMichael Knyszek <mknyszek@google.com>2024-12-23 17:53:33 -0800
commit772f024c615ec13c6cd28bf024e9d6be852201b6 (patch)
tree0fcd534b7f1a5adcf0ec00f6df1f7aed894eb59a /src/weak
parentb9955f0ad952a22388eead15e3d15610a29e03a0 (diff)
downloadgo-772f024c615ec13c6cd28bf024e9d6be852201b6.tar.xz
weak: fix typo in warning about tiny allocator optimization
Fixes #70972. Change-Id: Ib04c2a3129a1da651a0b4674b372aec73966115a Reviewed-on: https://go-review.googlesource.com/c/go/+/638377 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/weak')
-rw-r--r--src/weak/pointer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/weak/pointer.go b/src/weak/pointer.go
index d8be409349..50af0c2fdc 100644
--- a/src/weak/pointer.go
+++ b/src/weak/pointer.go
@@ -52,7 +52,7 @@ import (
// nil, even after an object is no longer referenced, the runtime is allowed to
// perform a space-saving optimization that batches objects together in a single
// allocation slot. The weak pointer for an unreferenced object in such an
-// allocation may never be called if it always exists in the same batch as a
+// allocation may never become nil if it always exists in the same batch as a
// referenced object. Typically, this batching only happens for tiny
// (on the order of 16 bytes or less) and pointer-free objects.
type Pointer[T any] struct {