From 9f61dac7af3504714ac39559a689728b8daf7d2f Mon Sep 17 00:00:00 2001 From: "Michael W.C. Wilding" Date: Tue, 6 Sep 2022 10:18:32 -0700 Subject: [PATCH] Update slice.md Should include simple case. By combining in to a single step with the delimit function it confuses that this is the reference for the slice function. My solution is just to add an interim step illustrating the simple case and feeding that back into the delimit function. --- content/en/functions/slice.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 >}}