Skip to content

Commit a88a963

Browse files
ariel-anieligopherbot
authored andcommitted
cmd/cgo: use doc link for cgo.Handle
Change-Id: If6af9842f563fe9233de0563d356e925a7b912f8 GitHub-Last-Rev: e8422e9 GitHub-Pull-Request: #76727 Reviewed-on: https://go-review.googlesource.com/c/go/+/727581 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: David Chase <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Sean Liao <[email protected]> Auto-Submit: Sean Liao <[email protected]>
1 parent 276cc4d commit a88a963

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cmd/cgo/doc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,8 @@ and of course there is nothing stopping the C code from doing anything
425425
it likes. However, programs that break these rules are likely to fail
426426
in unexpected and unpredictable ways.
427427
428-
The runtime/cgo.Handle type can be used to safely pass Go values
429-
between Go and C. See the runtime/cgo package documentation for details.
428+
The type [runtime/cgo.Handle] can be used to safely pass Go values
429+
between Go and C.
430430
431431
Note: the current implementation has a bug. While Go code is permitted
432432
to write nil or a C pointer (but not a Go pointer) to C memory, the

0 commit comments

Comments
 (0)