Skip to content

Commit f1a17b0

Browse files
committed
fix doc.
Signed-off-by: doujiang24 <[email protected]>
1 parent 6e4adbc commit f1a17b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cmd/cgo/doc.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ pointer safely, the program may crash or see memory corruption.
432432
433433
For example:
434434
435-
// #cgo nocallback cFunctionName
435+
// #cgo noescape cFunctionName
436436
437437
When a Go function calls a C function, it prepares for the C function to
438438
call back to a Go function. the #cgo nocallback directive may be used to
@@ -442,7 +442,7 @@ Go code, the program will panic.
442442
443443
For example:
444444
445-
// #cgo noescape cFunctionName
445+
// #cgo nocallback cFunctionName
446446
447447
# Special cases
448448

0 commit comments

Comments
 (0)