aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/runtime/pinner.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/runtime/pinner.go b/src/runtime/pinner.go
index 8bb351eb8f..75de8be02a 100644
--- a/src/runtime/pinner.go
+++ b/src/runtime/pinner.go
@@ -25,10 +25,7 @@ type Pinner struct {
// objects, these objects must be pinned separately if they are going to be
// accessed from C code.
//
-// The argument must be a pointer of any type or an
-// unsafe.Pointer. It must be the result of calling new,
-// taking the address of a composite literal, or taking the address of a
-// local variable. If one of these conditions is not met, Pin will panic.
+// The argument must be a pointer of any type or an unsafe.Pointer.
func (p *Pinner) Pin(pointer any) {
if p.pinner == nil {
// Check the pinner cache first.