]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix getclosureptr doc
authorAustin Clements <austin@google.com>
Tue, 15 Aug 2017 15:32:02 +0000 (11:32 -0400)
committerAustin Clements <austin@google.com>
Tue, 15 Aug 2017 17:59:16 +0000 (17:59 +0000)
Change-Id: I1b42fca2107b06e6fc95728f7bf3d08d005c4cb4
Reviewed-on: https://go-review.googlesource.com/55810
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/stubs.go

index 7f504e684e50b31968ba6e92e7cb146cf1d70cb9..1af704cb24a5eec60f1c78c45e58538dbeccbd61 100644 (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,