From 04e412a99b6db84dcd16fdec5facddace6100076 Mon Sep 17 00:00:00 2001 From: Masayuki Morita Date: Thu, 21 May 2020 10:12:28 +0900 Subject: [PATCH] Fix a wrong error message for bitwise OR Fixes #376 --- hclsyntax/token.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hclsyntax/token.go b/hclsyntax/token.go index 688b90c..5964475 100644 --- a/hclsyntax/token.go +++ b/hclsyntax/token.go @@ -202,7 +202,7 @@ func checkInvalidTokens(tokens Tokens) hcl.Diagnostics { case TokenBitwiseAnd: suggestion = " Did you mean boolean AND (\"&&\")?" case TokenBitwiseOr: - suggestion = " Did you mean boolean OR (\"&&\")?" + suggestion = " Did you mean boolean OR (\"||\")?" case TokenBitwiseNot: suggestion = " Did you mean boolean NOT (\"!\")?" }