Rename $(etc) to [etc]

This commit is contained in:
Nigel Tao committed 2018-08-18 10:11:43 +10:00
1 parent 4e7ef5fb88
commit c1af1e2c82
14 files changed
+44 -42

No files matched your search

+1 -1
View File
@@ -306,7 +306,7 @@ func (c *Checker) checkConst(node *a.Node) error {
func (c *Checker) checkConstElement(n *a.Expr, nb a.Bounds, nLists int) error {
if nLists > 0 {
nLists--
if n.Operator() != t.IDDollar {
if n.Operator() != t.IDComma {
return fmt.Errorf("invalid const value %q", n.Str(c.tm))
}
for _, o := range n.Args() {