]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/ir: fix up stale comment
authorThan McIntosh <thanm@google.com>
Fri, 26 Feb 2021 14:25:22 +0000 (09:25 -0500)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 1 Mar 2021 20:00:13 +0000 (20:00 +0000)
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>
src/cmd/compile/internal/ir/name.go

index 6240852aaf37bda4d6cb4cafdcbd0abe3f4df0ec..035c9cd3d05ee004f041e2c3dba2348dab567eeb 100644 (file)
@@ -398,7 +398,7 @@ func FinishCaptureNames(pos src.XPos, outerfn, fn *Func) {
        // unhook them.
        // make the list of pointers for the closure call.
        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.Innermost = cv.Outer