From: Austin Clements Date: Tue, 15 Aug 2017 15:32:02 +0000 (-0400) Subject: runtime: fix getclosureptr doc X-Git-Tag: go1.10beta1~1548 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=03929984b9b473aa1c2e7f86c89a9c3624667d59;p=gostls13.git runtime: fix getclosureptr doc Change-Id: I1b42fca2107b06e6fc95728f7bf3d08d005c4cb4 Reviewed-on: https://go-review.googlesource.com/55810 Reviewed-by: Ian Lance Taylor --- diff --git a/src/runtime/stubs.go b/src/runtime/stubs.go index 7f504e684e..1af704cb24 100644 --- a/src/runtime/stubs.go +++ b/src/runtime/stubs.go @@ -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,