From 58ae050055ef00b97f1119e042fe7b459b20e839 Mon Sep 17 00:00:00 2001 From: Costin Chirvasuta Date: Fri, 7 Jul 2017 21:26:45 +0100 Subject: [PATCH] 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 --- src/runtime/symtab.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/symtab.go b/src/runtime/symtab.go index ced42dad61..3bba87db5a 100644 --- a/src/runtime/symtab.go +++ b/src/runtime/symtab.go @@ -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() } -- 2.50.0