summaryrefslogtreecommitdiff
path: root/hclwrite
diff options
context:
space:
mode:
authorMartin Atkins <mart@degeneration.co.uk>2018-08-09 08:47:37 -0700
committerMartin Atkins <mart@degeneration.co.uk>2018-08-09 08:47:37 -0700
commit59bb5c26709127dde2b5dceeb12ce2d656fe58c0 (patch)
treebbf7aa176ae3567fb1cef7355a493068934d789b /hclwrite
parentc8c208e08341f2d9526882716c671809a01c1552 (diff)
hclwrite: Fix NewExpressionAbsTraversal signature
It is still not implemented, but at least now it is declared with the correct return type.
Diffstat (limited to 'hclwrite')
-rw-r--r--hclwrite/ast_expression.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hclwrite/ast_expression.go b/hclwrite/ast_expression.go
index c1494f7..cdd6e48 100644
--- a/hclwrite/ast_expression.go
+++ b/hclwrite/ast_expression.go
@@ -40,7 +40,7 @@ func NewExpressionLiteral(val cty.Value) *Expression {
// NewExpressionAbsTraversal constructs an expression that represents the
// given traversal, which must be absolute or this function will panic.
-func NewExpressionAbsTraversal(traversal hcl.Traversal) {
+func NewExpressionAbsTraversal(traversal hcl.Traversal) *Expression {
panic("NewExpressionAbsTraversal not yet implemented")
}