diff options
| author | Alex Brainman <alex.brainman@gmail.com> | 2014-11-18 09:55:15 +1100 |
|---|---|---|
| committer | Alex Brainman <alex.brainman@gmail.com> | 2014-11-18 09:55:15 +1100 |
| commit | 55f19ed866d55ebfdbed59893ff93fb00a7c35fe (patch) | |
| tree | c294c95b4b980f9f3424e4b4621abd77dab21652 /src | |
| parent | 38fef031e16f819a3f1f6e14e3e7d70ac4ccfebb (diff) | |
| download | go-55f19ed866d55ebfdbed59893ff93fb00a7c35fe.tar.xz | |
runtime: fix getcallersp documentation
LGTM=bradfitz
R=rsc, bradfitz
CC=golang-codereviews
https://golang.org/cl/180760043
Diffstat (limited to 'src')
| -rw-r--r-- | src/runtime/stubs.go | 2 |
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 |
