From 03929984b9b473aa1c2e7f86c89a9c3624667d59 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Tue, 15 Aug 2017 11:32:02 -0400 Subject: [PATCH] runtime: fix getclosureptr doc Change-Id: I1b42fca2107b06e6fc95728f7bf3d08d005c4cb4 Reviewed-on: https://go-review.googlesource.com/55810 Reviewed-by: Ian Lance Taylor --- src/runtime/stubs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.48.1