mirror of
https://github.com/golang/go
synced 2024-11-22 03:14:41 -07:00
runtime: fix bug in Caller documentation
R=r CC=golang-dev https://golang.org/cl/207110
This commit is contained in:
parent
db9a9662a1
commit
04d9c8853b
@ -24,7 +24,7 @@ func Breakpoint()
|
|||||||
|
|
||||||
// Caller reports file and line number information about function invocations on
|
// Caller reports file and line number information about function invocations on
|
||||||
// the calling goroutine's stack. The argument is the number of stack frames to
|
// the calling goroutine's stack. The argument is the number of stack frames to
|
||||||
// ascend, with 1 identifying the the caller of Caller. The return values report the
|
// ascend, with 0 identifying the the caller of Caller. The return values report the
|
||||||
// program counter, file name, and line number within the file of the corresponding
|
// program counter, file name, and line number within the file of the corresponding
|
||||||
// call. The boolean ok is false if it was not possible to recover the information.
|
// call. The boolean ok is false if it was not possible to recover the information.
|
||||||
func Caller(n int) (pc uintptr, file string, line int, ok bool)
|
func Caller(n int) (pc uintptr, file string, line int, ok bool)
|
||||||
|
Loading…
Reference in New Issue
Block a user