From 98b27814ae71d1921e5b71618f2e40c4da11d650 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Mon, 7 Jun 2010 18:27:26 -0700 Subject: [PATCH] gc: better error message when ~ operator is found Fixes #844. R=ken2, rsc, ken3 CC=golang-dev https://golang.org/cl/1593041 --- src/cmd/gc/go.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/gc/go.y b/src/cmd/gc/go.y index 5aac463c8cf..c7a1f111bcc 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