mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
fix doc.
Signed-off-by: doujiang24 <doujiang24@gmail.com>
This commit is contained in:
parent
6e4adbc07a
commit
f1a17b08b0
1 changed files with 2 additions and 2 deletions
|
|
@ -432,7 +432,7 @@ pointer safely, the program may crash or see memory corruption.
|
|||
|
||||
For example:
|
||||
|
||||
// #cgo nocallback cFunctionName
|
||||
// #cgo noescape cFunctionName
|
||||
|
||||
When a Go function calls a C function, it prepares for the C function to
|
||||
call back to a Go function. the #cgo nocallback directive may be used to
|
||||
|
|
@ -442,7 +442,7 @@ Go code, the program will panic.
|
|||
|
||||
For example:
|
||||
|
||||
// #cgo noescape cFunctionName
|
||||
// #cgo nocallback cFunctionName
|
||||
|
||||
# Special cases
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue