Skip to content

Commit 916e6cd

Browse files
qiulaidongfenggopherbot
authored andcommitted
[release-branch.go1.21] runtime: fix Pinner.Pin documentation
Fixes #63768 Change-Id: I01a9bb8f9af22a6b3f6534d431e3ea623875ed48 GitHub-Last-Rev: 7c5dd4e GitHub-Pull-Request: #64920 Reviewed-on: https://go-review.googlesource.com/c/go/+/553395 Reviewed-by: Michael Knyszek <[email protected]> Auto-Submit: Michael Knyszek <[email protected]> Reviewed-by: Cherry Mui <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent 6552f3d commit 916e6cd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/runtime/pinner.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ type Pinner struct {
2525
// objects, these objects must be pinned separately if they are going to be
2626
// accessed from C code.
2727
//
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.
28+
// The argument must be a pointer of any type or an unsafe.Pointer.
3229
func (p *Pinner) Pin(pointer any) {
3330
if p.pinner == nil {
3431
// Check the pinner cache first.

0 commit comments

Comments
 (0)