aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Brainman <alex.brainman@gmail.com>2014-11-18 09:55:15 +1100
committerAlex Brainman <alex.brainman@gmail.com>2014-11-18 09:55:15 +1100
commit55f19ed866d55ebfdbed59893ff93fb00a7c35fe (patch)
treec294c95b4b980f9f3424e4b4621abd77dab21652
parent38fef031e16f819a3f1f6e14e3e7d70ac4ccfebb (diff)
downloadgo-55f19ed866d55ebfdbed59893ff93fb00a7c35fe.tar.xz
runtime: fix getcallersp documentation
LGTM=bradfitz R=rsc, bradfitz CC=golang-codereviews https://golang.org/cl/180760043
-rw-r--r--src/runtime/stubs.go2
1 files changed, 1 insertions, 1 deletions
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