1
0
mirror of https://github.com/golang/go synced 2024-11-19 13:14:42 -07:00

runtime: fix getclosureptr doc

Change-Id: I1b42fca2107b06e6fc95728f7bf3d08d005c4cb4
Reviewed-on: https://go-review.googlesource.com/55810
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Austin Clements 2017-08-15 11:32:02 -04:00
parent 92f6350287
commit 03929984b9

View File

@ -227,7 +227,7 @@ func getcallersp(argp unsafe.Pointer) uintptr {
return uintptr(argp) - sys.MinFrameSize
}
// getg returns the pointer to the current closure.
// getclosureptr returns the pointer to the current closure.
// getclosureptr can only be used in an assignment statement
// at the entry of a function. Moreover, go:nosplit directive
// must be specified at the declaration of caller function,