diff options
author | Costin Chirvasuta <ctin@google.com> | 2017-07-07 21:26:45 +0100 |
---|---|---|
committer | Austin Clements <austin@google.com> | 2017-07-11 14:01:04 +0000 |
commit | 58ae050055ef00b97f1119e042fe7b459b20e839 (patch) | |
tree | 8f0364dad6f8df9bb51c73cff54b73b10a7f9c9c /src/runtime/symtab.go | |
parent | 6f83b75be2bf038a3a919ad7bd64eda2ee9a934a (diff) | |
download | go-58ae050055ef00b97f1119e042fe7b459b20e839.tar.gz go-58ae050055ef00b97f1119e042fe7b459b20e839.zip |
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 <austin@google.com>
Diffstat (limited to 'src/runtime/symtab.go')
-rw-r--r-- | src/runtime/symtab.go | 2 |
1 files changed, 1 insertions, 1 deletions
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() } |