Skip to content

Commit 58ae050

Browse files
ct1naclements
authored andcommitted
runtime: simplify description of FuncForPC behavior in case of inlining
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 <[email protected]>
1 parent 6f83b75 commit 58ae050

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/symtab.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ func moduledataverify1(datap *moduledata) {
575575
// given program counter address, or else nil.
576576
//
577577
// If pc represents multiple functions because of inlining, it returns
578-
// the *Func describing the outermost frame at pc.
578+
// the *Func describing the outermost function.
579579
func FuncForPC(pc uintptr) *Func {
580580
return findfunc(pc)._Func()
581581
}

0 commit comments

Comments
 (0)