1
0
mirror of https://github.com/golang/go synced 2024-11-26 10:48:22 -07:00

unsafe: say "functions like syscall.Syscall", not only Syscall

Fixes #68301

Change-Id: I9d7f623370705ab2ad4c49489b5a89162467f22a
Reviewed-on: https://go-review.googlesource.com/c/go/+/596936
Commit-Queue: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
This commit is contained in:
Ian Lance Taylor 2024-07-06 14:09:26 -07:00 committed by Gopher Robot
parent a71bb570d0
commit b31e9a63a4

View File

@ -110,7 +110,7 @@ type IntegerType int
// u := unsafe.Pointer(nil) // u := unsafe.Pointer(nil)
// p := unsafe.Pointer(uintptr(u) + offset) // p := unsafe.Pointer(uintptr(u) + offset)
// //
// (4) Conversion of a Pointer to a uintptr when calling [syscall.Syscall]. // (4) Conversion of a Pointer to a uintptr when calling functions like [syscall.Syscall].
// //
// The Syscall functions in package syscall pass their uintptr arguments directly // The Syscall functions in package syscall pass their uintptr arguments directly
// to the operating system, which then may, depending on the details of the call, // to the operating system, which then may, depending on the details of the call,