aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/statements.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-12-15 12:36:19 -0800
committerIan Lance Taylor <iant@golang.org>2020-12-15 13:07:54 -0800
commit5aba02667113fbe43d74c37724f29868f098dd1c (patch)
tree483af80d03b50b82f4cf6780e95a65007fdd9636 /gcc/go/gofrontend/statements.cc
parent788d204885c187d5604e3960d7c78e1523f04861 (diff)
downloadgcc-5aba02667113fbe43d74c37724f29868f098dd1c.zip
gcc-5aba02667113fbe43d74c37724f29868f098dd1c.tar.gz
gcc-5aba02667113fbe43d74c37724f29868f098dd1c.tar.bz2
compiler: correct grammar in error message
For golang/go#43200 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/278452
Diffstat (limited to 'gcc/go/gofrontend/statements.cc')
-rw-r--r--gcc/go/gofrontend/statements.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/statements.cc b/gcc/go/gofrontend/statements.cc
index af82f36..398b8fd 100644
--- a/gcc/go/gofrontend/statements.cc
+++ b/gcc/go/gofrontend/statements.cc
@@ -4538,7 +4538,7 @@ Switch_statement::do_lower(Gogo*, Named_object*, Block* enclosing,
Type::make_nil_type(), NULL))
{
go_error_at(this->val_->location(),
- "cannot switch on value whose type that may not be compared");
+ "cannot switch on value whose type may not be compared");
return Statement::make_error_statement(loc);
}