diff --git a/src/cmd/cgo/doc.go b/src/cmd/cgo/doc.go index 0e708fb3b4..894df2d836 100644 --- a/src/cmd/cgo/doc.go +++ b/src/cmd/cgo/doc.go @@ -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