diff options
author | Robert Griesemer <gri@golang.org> | 2010-06-07 18:27:26 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2010-06-07 18:27:26 -0700 |
commit | bd1ec96e478cc4b1651a106ec2d1a90617910b5c (patch) | |
tree | 0fad516d22f24079e172899315fb4c743111db7d /src | |
parent | 984cbbcb0c87d1c2fb335e905fb5611ebe194949 (diff) | |
download | golang-bd1ec96e478cc4b1651a106ec2d1a90617910b5c.tar.gz |
gc: better error message when ~ operator is found
Fixes issue 844.
R=ken2, rsc, ken3
CC=golang-dev
http://codereview.appspot.com/1593041
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/gc/go.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/gc/go.y b/src/cmd/gc/go.y index 5aac463c8..c7a1f111b 100644 --- a/src/cmd/gc/go.y +++ b/src/cmd/gc/go.y @@ -753,7 +753,7 @@ uexpr: } | '~' uexpr { - yyerror("the OCOM operator is ^"); + yyerror("the bitwise complement operator is ^"); $$ = nod(OCOM, $2, N); } | '^' uexpr |