From 706facb9f2bf28e1f6e575b7626f8feeca1187cf Mon Sep 17 00:00:00 2001 From: Richard Wang Date: Thu, 14 Sep 2023 14:11:50 +0900 Subject: [PATCH] reword --- src/runtime/cgocall.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/runtime/cgocall.go b/src/runtime/cgocall.go index 1d92b3bd76..98e52fc208 100644 --- a/src/runtime/cgocall.go +++ b/src/runtime/cgocall.go @@ -530,9 +530,8 @@ const cgoResultFail = "cgo result is unpinned Go pointer or points to unpinned G // cgoCheckArg is the real work of cgoCheckPointer. The argument p // is either a pointer to the value (of type t), or the value itself, // depending on indir. The top parameter is whether we are at the top -// level, where Go pointers are allowed. Go pointers to pinned objects that -// don't reference other unpinned pointers (enforced by cgoCheckUnknownPointer) -// are always allowed. +// level, where Go pointers are allowed. Go pointers to pinned objects are +// allowed as long as they don't reference other unpinned pointers. func cgoCheckArg(t *_type, p unsafe.Pointer, indir, top bool, msg string) { if t.PtrBytes == 0 || p == nil { // If the type has no pointers there is nothing to do.