]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: simplify description of FuncForPC behavior in case of inlining
authorCostin Chirvasuta <ctin@google.com>
Fri, 7 Jul 2017 20:26:45 +0000 (21:26 +0100)
committerAustin Clements <austin@google.com>
Tue, 11 Jul 2017 14:01:04 +0000 (14:01 +0000)
The current description refers to the outermost "frame" which can be
misleading. A user reading it can think it means a stack frame.

Change-Id: Ie2c7cb4b4db8f41572df206478ce3b46a0245a5d
Reviewed-on: https://go-review.googlesource.com/47850
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/symtab.go

index ced42dad61aa9247ee484b04c13e3caafeb884f5..3bba87db5a0cfacd6d799b7c0d99efbc8e01f105 100644 (file)
@@ -575,7 +575,7 @@ func moduledataverify1(datap *moduledata) {
 // given program counter address, or else nil.
 //
 // If pc represents multiple functions because of inlining, it returns
-// the *Func describing the outermost frame at pc.
+// the *Func describing the outermost function.
 func FuncForPC(pc uintptr) *Func {
        return findfunc(pc)._Func()
 }