From 8dd465895a41b866fb2d20401b8bab86b336fdfc Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Thu, 6 Oct 2022 19:23:19 -0400 Subject: Fix incorrect coll.GoSlice example Signed-off-by: Dave Henderson --- docs/content/functions/coll.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/content/functions/coll.md b/docs/content/functions/coll.md index 75446aa0..e441da9b 100644 --- a/docs/content/functions/coll.md +++ b/docs/content/functions/coll.md @@ -123,7 +123,8 @@ coll.GoSlice item [indexes...] ### Examples ```console -$ gomplate -i '{{ $l := coll.Slice "foo" "bar" "baz" }}{{ if has $l "bar" }}a{{else}}no{{end}} bar' +$ gomplate -i '{{ coll.GoSlice "hello world" 3 8 }}' +lo wo ``` ## `coll.Has` -- cgit v1.2.3