]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: fix comments in transformclosure
authorHiroshi Ioka <hirochachacha@gmail.com>
Mon, 24 Apr 2017 05:30:31 +0000 (14:30 +0900)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 24 Apr 2017 15:45:15 +0000 (15:45 +0000)
Change-Id: I7a18798180405504dc064424d63dac49634168fb
Reviewed-on: https://go-review.googlesource.com/41530
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/closure.go

index e258d58ae521398ccbe9c54109141b1e9abe5b5c..8826bc3f92b6a6afff9d592b1094295d2baa5a53 100644 (file)
@@ -319,7 +319,7 @@ func transformclosure(xfunc *Node) {
                //              byref++
                //      }(42)
                // becomes:
-               //      func(a int, byval int, &byref *int) {
+               //      func(byval int, &byref *int, a int) {
                //              println(byval)
                //              (*&byref)++
                //      }(byval, &byref, 42)