]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix getcallersp documentation
authorAlex Brainman <alex.brainman@gmail.com>
Mon, 17 Nov 2014 22:55:15 +0000 (09:55 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Mon, 17 Nov 2014 22:55:15 +0000 (09:55 +1100)
LGTM=bradfitz
R=rsc, bradfitz
CC=golang-codereviews
https://golang.org/cl/180760043

src/runtime/stubs.go

index fe8f9c9222aba574260cd9f132515aba18fee49e..1282397adb4e587ab82c7f388d605917235279cb 100644 (file)
@@ -231,7 +231,7 @@ func setcallerpc(argp unsafe.Pointer, pc uintptr)
 //
 //     func f(arg1, arg2, arg3 int) {
 //             pc := getcallerpc(unsafe.Pointer(&arg1))
-//             sp := getcallerpc(unsafe.Pointer(&arg2))
+//             sp := getcallersp(unsafe.Pointer(&arg1))
 //     }
 //
 // These two lines find the PC and SP immediately following