Skip to content

Commit

Permalink
docs: amend HCL templates/functions docs
Browse files Browse the repository at this point in the history
The HCL2 docs on built-in functions contains a link to a non-existent
section of the expressions page, so we update it to link to the general
page, and to the string interpolation section, since it is a common use
case.
  • Loading branch information
lbajolet-hashicorp committed Oct 30, 2023
1 parent 71aa2f3 commit 6b93237
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ arguments in parentheses:
max(5, 12, 9)
```

For more details on syntax, see
[_Function Calls_](/packer/docs/templates/hcl_templates/expressions#function-calls)
on the Expressions page.
For information on invoking functions in string literals, refer to the
[String Literals](https://developer.hashicorp.com/packer/docs/templates/hcl_templates/expressions#string-literals) section
in the HCL2 expressions documentation.

The HCL language does not support user-defined functions, and so only
the functions built in to the language are available for use. The documentation includes all of the available built-in functions.

0 comments on commit 6b93237

Please sign in to comment.