summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2019-10-10 22:26:36 -0400
committerDave Henderson <dhenderson@gmail.com>2019-10-10 22:26:36 -0400
commita8436d299a7c787bc1fd89d5696394a56f0c6149 (patch)
tree01e2e92abfa0c3f2b5053fbeb073a65bbaebba86
parent0de8ca662e8fec58628c85d509556ff74c8cba11 (diff)
Fix example in docs for coll.Uniq
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
-rw-r--r--docs-src/content/functions/coll.yml6
-rw-r--r--docs/content/functions/coll.md6
2 files changed, 4 insertions, 8 deletions
diff --git a/docs-src/content/functions/coll.yml b/docs-src/content/functions/coll.yml
index ff548b0c..62d3cbcc 100644
--- a/docs-src/content/functions/coll.yml
+++ b/docs-src/content/functions/coll.yml
@@ -191,8 +191,6 @@ funcs:
Remove any duplicate values from the list, without changing order.
_Note that this function does not change the given list; it always produces a new one._
-
- See also [`coll.Append`](#coll-append).
pipeline: true
arguments:
- name: list
@@ -200,8 +198,8 @@ funcs:
description: the input list
examples:
- |
- $ gomplate -i '{{ slice 4 3 2 1 | prepend 5 }}'
- [5 4 3 2 1]
+ $ gomplate -i '{{ slice 1 2 3 2 3 4 1 5 | uniq }}'
+ [1 2 3 4 5]
- name: coll.Reverse
alias: reverse
description: |
diff --git a/docs/content/functions/coll.md b/docs/content/functions/coll.md
index c1647a2f..869d95a7 100644
--- a/docs/content/functions/coll.md
+++ b/docs/content/functions/coll.md
@@ -304,8 +304,6 @@ Remove any duplicate values from the list, without changing order.
_Note that this function does not change the given list; it always produces a new one._
-See also [`coll.Append`](#coll-append).
-
### Usage
```go
@@ -324,8 +322,8 @@ list | coll.Uniq
### Examples
```console
-$ gomplate -i '{{ slice 4 3 2 1 | prepend 5 }}'
-[5 4 3 2 1]
+$ gomplate -i '{{ slice 1 2 3 2 3 4 1 5 | uniq }}'
+[1 2 3 4 5]
```
## `coll.Reverse`