Skip to content

Commit f6a74c6

Browse files
thanmmdempsky
authored andcommitted
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>
1 parent 87beecd commit f6a74c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/compile/internal/ir/name.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ func FinishCaptureNames(pos src.XPos, outerfn, fn *Func) {
398398
// unhook them.
399399
// make the list of pointers for the closure call.
400400
for _, cv := range fn.ClosureVars {
401-
// Unlink from n; see comment in syntax.go type Param for these fields.
401+
// Unlink from n; see comment above on type Name for these fields.
402402
n := cv.Defn.(*Name)
403403
n.Innermost = cv.Outer
404404

0 commit comments

Comments
 (0)