diff --git a/website/docs/language/functions/join.mdx b/website/docs/language/functions/join.mdx index 4ae35b705f..a917553f2b 100644 --- a/website/docs/language/functions/join.mdx +++ b/website/docs/language/functions/join.mdx @@ -7,8 +7,8 @@ description: |- # `join` Function -`join` produces a string by concatenating together all elements of a given -list of strings with the given delimiter. +`join` produces a string by concatenating all of the elements of the specified +list of strings with the specified separator. ```hcl join(separator, list) @@ -17,6 +17,8 @@ join(separator, list) ## Examples ``` +> join("-", ["foo", "bar", "baz"]) +"foo-bar-baz" > join(", ", ["foo", "bar", "baz"]) foo, bar, baz > join(", ", ["foo"])