src/runtime/pinner.go | 5 +---- diff --git a/src/runtime/pinner.go b/src/runtime/pinner.go index 8bb351eb8f2876406a307688b878229027ad8d0a..75de8be02aacc352fb43cdc470b99abba23a6416 100644 --- a/src/runtime/pinner.go +++ b/src/runtime/pinner.go @@ -25,10 +25,7 @@ // passed to C functions. If the pinned object itself contains pointers to Go // 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.