mirror of
https://github.com/golang/go
synced 2024-10-14 11:53:56 +00:00
runtime: fix getcallersp documentation
LGTM=bradfitz R=rsc, bradfitz CC=golang-codereviews https://golang.org/cl/180760043
This commit is contained in:
parent
38fef031e1
commit
55f19ed866
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue