diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2022-10-06 19:23:19 -0400 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2022-10-06 19:24:39 -0400 |
| commit | 8dd465895a41b866fb2d20401b8bab86b336fdfc (patch) | |
| tree | d5572b70df3903cd26d27a8000799d8d1e9f72aa /docs | |
| parent | a796a2531311833f8203379ccef380ecabc129c7 (diff) | |
Fix incorrect coll.GoSlice example
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/content/functions/coll.md | 3 |
1 files changed, 2 insertions, 1 deletions
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` |
