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-src/content/functions/coll.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs-src') diff --git a/docs-src/content/functions/coll.yml b/docs-src/content/functions/coll.yml index a82e3f59..eedfd57a 100644 --- a/docs-src/content/functions/coll.yml +++ b/docs-src/content/functions/coll.yml @@ -86,7 +86,8 @@ funcs: description: the indexes to slice the item by (0 to 3 arguments) examples: - | - $ 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 - name: coll.Has alias: has description: | -- cgit v1.2.3