Commit 03929984 authored by Austin Clements's avatar Austin Clements

runtime: fix getclosureptr doc

Change-Id: I1b42fca2107b06e6fc95728f7bf3d08d005c4cb4
Reviewed-on: https://go-review.googlesource.com/55810Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent 92f63502
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment