1
0
mirror of https://github.com/golang/go synced 2024-11-12 08:50:22 -07:00

runtime: fix bug in Caller documentation

R=r
CC=golang-dev
https://golang.org/cl/207110
This commit is contained in:
Russ Cox 2010-02-16 16:11:11 -08:00
parent db9a9662a1
commit 04d9c8853b

View File

@ -24,7 +24,7 @@ func Breakpoint()
// 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
// 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
// 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)