diff --git a/content/en/functions/slice.md b/content/en/functions/slice.md index 0710d5e40..24b717128 100644 --- a/content/en/functions/slice.md +++ b/content/en/functions/slice.md @@ -23,7 +23,9 @@ toc: false One use case is the concatenation of elements in combination with the [`delimit` function][]: {{< code file="slice.html" >}} -{{ delimit (slice "foo" "bar" "buzz") ", " }} +{{ $sliceOfStrings := slice "foo" "bar" "buzz" }} + +{{ delimit ($sliceOfStrings) ", " }} {{< /code >}}