]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix bug in Caller documentation
authorRuss Cox <rsc@golang.org>
Wed, 17 Feb 2010 00:11:11 +0000 (16:11 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 17 Feb 2010 00:11:11 +0000 (16:11 -0800)
R=r
CC=golang-dev
https://golang.org/cl/207110

src/pkg/runtime/extern.go

index 0834f78791a3c7c27304f8eb07962ba72854f4ce..4ee3076c7968ec883ac6050c6e3b95212936a95a 100644 (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)