mirror of
https://github.com/golang/go
synced 2024-11-26 07:17:59 -07:00
cmd/compile/internal/ir: fix up stale comment
Fix a small stale comment in FinishCaptureNames (refers to old code structure before the big refactoring). Change-Id: I2dfb84ce238f919f6e17061439a8bd9b09459dae Reviewed-on: https://go-review.googlesource.com/c/go/+/296829 Trust: Than McIntosh <thanm@google.com> Run-TryBot: Than McIntosh <thanm@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
87beecd6df
commit
f6a74c6568
@ -398,7 +398,7 @@ func FinishCaptureNames(pos src.XPos, outerfn, fn *Func) {
|
|||||||
// unhook them.
|
// unhook them.
|
||||||
// make the list of pointers for the closure call.
|
// make the list of pointers for the closure call.
|
||||||
for _, cv := range fn.ClosureVars {
|
for _, cv := range fn.ClosureVars {
|
||||||
// Unlink from n; see comment in syntax.go type Param for these fields.
|
// Unlink from n; see comment above on type Name for these fields.
|
||||||
n := cv.Defn.(*Name)
|
n := cv.Defn.(*Name)
|
||||||
n.Innermost = cv.Outer
|
n.Innermost = cv.Outer
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user