From 55f19ed866d55ebfdbed59893ff93fb00a7c35fe Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Tue, 18 Nov 2014 09:55:15 +1100 Subject: [PATCH] runtime: fix getcallersp documentation LGTM=bradfitz R=rsc, bradfitz CC=golang-codereviews https://golang.org/cl/180760043 --- 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 fe8f9c9222..1282397adb 100644 --- a/src/runtime/stubs.go +++ b/src/runtime/stubs.go @@ -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