We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6552f3d commit 916e6cdCopy full SHA for 916e6cd
src/runtime/pinner.go
@@ -25,10 +25,7 @@ type Pinner struct {
25
// objects, these objects must be pinned separately if they are going to be
26
// accessed from C code.
27
//
28
-// The argument must be a pointer of any type or an
29
-// unsafe.Pointer. It must be the result of calling new,
30
-// taking the address of a composite literal, or taking the address of a
31
-// 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.
32
func (p *Pinner) Pin(pointer any) {
33
if p.pinner == nil {
34
// Check the pinner cache first.
0 commit comments