diff options
author | Keith Randall <khr@golang.org> | 2013-10-14 14:26:52 -0700 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2013-10-14 14:26:52 -0700 |
commit | 2acb80b5e57f5c42c6f474616253d4be80187527 (patch) | |
tree | 0d41850404c60c841a6468f77e856f366b7f51cd | |
parent | 21e6b90d36db8d10e93ca281aee404b5f7720f48 (diff) | |
download | go-2acb80b5e57f5c42c6f474616253d4be80187527.tar.gz go-2acb80b5e57f5c42c6f474616253d4be80187527.zip |
cmd/gc: fix comment about performing indexing at compile time.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/14441070
-rw-r--r-- | src/cmd/gc/walk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/gc/walk.c b/src/cmd/gc/walk.c index 495223e149..66409d5305 100644 --- a/src/cmd/gc/walk.c +++ b/src/cmd/gc/walk.c @@ -1044,8 +1044,8 @@ walkexpr(Node **np, NodeList **init) if(!n->bounded) yyerror("index out of bounds"); else { - // replace "abc"[2] with 'b'. - // delayed until now because "abc"[2] is not + // replace "abc"[1] with 'b'. + // delayed until now because "abc"[1] is not // an ideal constant. v = mpgetfix(n->right->val.u.xval); nodconst(n, n->type, n->left->val.u.sval->s[v]); |