]> Cypherpunks repositories - gostls13.git/commitdiff
len now takes an expression
authorKen Thompson <ken@golang.org>
Mon, 28 Jul 2008 20:54:58 +0000 (13:54 -0700)
committerKen Thompson <ken@golang.org>
Mon, 28 Jul 2008 20:54:58 +0000 (13:54 -0700)
R=r
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=13523
CL=13523

src/cmd/gc/go.y

index 0983ce9eb7826a3c079100d0980b5bcc92b5b661..be445d1d936a4ee734935968cf9539aec876fa6c 100644 (file)
@@ -720,7 +720,7 @@ pexpr:
        {
                $$ = nod(OCALL, $1, $3);
        }
-|      LLEN '(' name ')'
+|      LLEN '(' expr ')'
        {
                $$ = nod(OLEN, $3, N);
        }