Skip to content

Commit e8422e9

Browse files
committed
cmd/cgo: improve documentation
Add a link to runtime/cgo.Handle in documentation. Link: https://pkg.go.dev/runtime/cgo#Handle
1 parent 0d0d5c9 commit e8422e9

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)