From 73d574913d08abfe2bbbd6813b1f0303687820e0 Mon Sep 17 00:00:00 2001 From: Calle Pettersson Date: Tue, 12 Nov 2019 01:22:33 +0100 Subject: [PATCH] configs: Mention leading underscores in invalid identifier message --- configs/named_values.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/named_values.go b/configs/named_values.go index fa51c76ae..b88f06bf2 100644 --- a/configs/named_values.go +++ b/configs/named_values.go @@ -14,7 +14,7 @@ import ( ) // A consistent detail message for all "not a valid identifier" diagnostics. -const badIdentifierDetail = "A name must start with a letter and may contain only letters, digits, underscores, and dashes." +const badIdentifierDetail = "A name must start with a letter or underscore and may contain only letters, digits, underscores, and dashes." // Variable represents a "variable" block in a module or file. type Variable struct {