]> Cypherpunks repositories - gostls13.git/commitdiff
weak: fix typo in warning about tiny allocator optimization
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 23 Dec 2024 20:42:42 +0000 (20:42 +0000)
committerMichael Knyszek <mknyszek@google.com>
Tue, 24 Dec 2024 01:53:33 +0000 (17:53 -0800)
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>
src/weak/pointer.go

index d8be409349214948e79696c6292ccf49ca1e25fb..50af0c2fdc0a16422c5d66232ab0b67cfa657ae7 100644 (file)
@@ -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 {