commit | 6b01f8cdc11d86bd98165c91d6ae101bcf6b9e1a | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Thu Nov 26 20:13:16 2020 -0800 |
committer | Ian Lance Taylor <iant@golang.org> | Wed Dec 02 16:29:28 2020 +0000 |
tree | 09a0861c6b7d4620e7d3f6fa30f746d4cff040fd | |
parent | 720b8fed93143f284ca04358e1b13c8a3487281e [diff] |
compiler: reword "declared and not used" error message This is a gofrontend copy of https://golang.org/cl/203282. From the CL 203282 description: "declared and not used" is technically correct, but might confuse the user. Switching "and" to "but" will hopefully create the contrast for the users: they did one thing (declaration), but not the other --- actually using the variable. Change-Id: Ie302171c3c6aa6d4429dc125cf994be8ad58554a Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/273629 Trust: Ian Lance Taylor <iant@golang.org> Reviewed-by: Than McIntosh <thanm@google.com>