aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/hashicorp/hcl2/hcl/traversal_for_expr.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/hashicorp/hcl2/hcl/traversal_for_expr.go')
-rw-r--r--vendor/github.com/hashicorp/hcl2/hcl/traversal_for_expr.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/hashicorp/hcl2/hcl/traversal_for_expr.go b/vendor/github.com/hashicorp/hcl2/hcl/traversal_for_expr.go
index d4a565a..f69d5fe 100644
--- a/vendor/github.com/hashicorp/hcl2/hcl/traversal_for_expr.go
+++ b/vendor/github.com/hashicorp/hcl2/hcl/traversal_for_expr.go
@@ -36,7 +36,7 @@ func AbsTraversalForExpr(expr Expression) (Traversal, Diagnostics) {
36 &Diagnostic{ 36 &Diagnostic{
37 Severity: DiagError, 37 Severity: DiagError,
38 Summary: "Invalid expression", 38 Summary: "Invalid expression",
39 Detail: "A static variable reference is required.", 39 Detail: "A single static variable reference is required: only attribute access and indexing with constant keys. No calculations, function calls, template expressions, etc are allowed here.",
40 Subject: expr.Range().Ptr(), 40 Subject: expr.Range().Ptr(),
41 }, 41 },
42 } 42 }