aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/cgo
diff options
context:
space:
mode:
authorAriel Otilibili <otilibil@eurecom.fr>2025-12-07 00:39:34 +0000
committerGopher Robot <gobot@golang.org>2025-12-08 14:37:14 -0800
commita88a96330f312d08f5d191c66a463b165ac1b96d (patch)
tree0e44ffd5b6e4a125616557c8fa99c1d9b40d1e37 /src/cmd/cgo
parent276cc4d3dbbf413be008113e6c88ffb3df2de4d6 (diff)
downloadgo-a88a96330f312d08f5d191c66a463b165ac1b96d.tar.xz
cmd/cgo: use doc link for cgo.Handle
Change-Id: If6af9842f563fe9233de0563d356e925a7b912f8 GitHub-Last-Rev: e8422e9a5aa9ca3140c96f7abfa4fa4482d709ab GitHub-Pull-Request: golang/go#76727 Reviewed-on: https://go-review.googlesource.com/c/go/+/727581 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Sean Liao <sean@liao.dev> Auto-Submit: Sean Liao <sean@liao.dev>
Diffstat (limited to 'src/cmd/cgo')
-rw-r--r--src/cmd/cgo/doc.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/cgo/doc.go b/src/cmd/cgo/doc.go
index 7e8486874e..47d243d1a1 100644
--- a/src/cmd/cgo/doc.go
+++ b/src/cmd/cgo/doc.go
@@ -425,8 +425,8 @@ and of course there is nothing stopping the C code from doing anything
it likes. However, programs that break these rules are likely to fail
in unexpected and unpredictable ways.
-The runtime/cgo.Handle type can be used to safely pass Go values
-between Go and C. See the runtime/cgo package documentation for details.
+The type [runtime/cgo.Handle] can be used to safely pass Go values
+between Go and C.
Note: the current implementation has a bug. While Go code is permitted
to write nil or a C pointer (but not a Go pointer) to C memory, the