]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/gc: fix comment typo, assignment spacing
authorIan Lance Taylor <iant@golang.org>
Thu, 22 Mar 2012 18:40:12 +0000 (11:40 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 22 Mar 2012 18:40:12 +0000 (11:40 -0700)
R=bradfitz, gri, lvd
CC=golang-dev
https://golang.org/cl/5874053

src/cmd/gc/walk.c

index ff6f1d28bd7040c086d157071893b62041b13bb2..7dfd34a7abaa78e7880f8ff4371475255ff09160 100644 (file)
@@ -2358,10 +2358,10 @@ append(Node *n, NodeList **init)
 
        walkexprlistsafe(n->list, init);
 
-       // walkexprlistsafe will leave OINDEX (s[n]) along if both s
+       // walkexprlistsafe will leave OINDEX (s[n]) alone if both s
        // and n are name or literal, but those may index the slice we're
        // modifying here.  Fix explicitly.
-       for(l = n->list; l; l=l->next)
+       for(l=n->list; l; l=l->next)
                l->n = cheapexpr(l->n, init);
 
        nsrc = n->list->n;