mirror of https://github.com/golang/go.git
fix doc.
Signed-off-by: doujiang24 <doujiang24@gmail.com>
This commit is contained in:
parent
6e4adbc07a
commit
f1a17b08b0
|
|
@ -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…
Reference in New Issue