]> Cypherpunks repositories - gostls13.git/commitdiff
unsafe: say "functions like syscall.Syscall", not only Syscall
authorIan Lance Taylor <iant@golang.org>
Sat, 6 Jul 2024 21:09:26 +0000 (14:09 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 11 Jul 2024 23:38:31 +0000 (23:38 +0000)
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>

src/unsafe/unsafe.go

index 645ddf2c8aa63b884363fb9bbbe48acd06046227..de9421bab563a70d3e85906e8288aeaba6d626c6 100644 (file)
@@ -110,7 +110,7 @@ type IntegerType int
 //     u := unsafe.Pointer(nil)
 //     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
 // to the operating system, which then may, depending on the details of the call,