diff options
author | Joe Mooring <[email protected]> | 2023-01-30 08:36:44 -0800 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-01-31 08:12:45 +0100 |
commit | 4ccc8cfb4ccfc0d4d081a81521b288767628c8d5 (patch) | |
tree | f3718348a9faf39972759fa74429c1dc4a5ba1e2 /tpl | |
parent | e2cfc3d5a2f768a99a1a1e778a70720b49131e9a (diff) | |
download | hugo-4ccc8cfb4ccfc0d4d081a81521b288767628c8d5.tar.gz hugo-4ccc8cfb4ccfc0d4d081a81521b288767628c8d5.zip |
Fix description of collections.Uniq
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/collections/collections.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tpl/collections/collections.go b/tpl/collections/collections.go index 687669a70..994d5f1b4 100644 --- a/tpl/collections/collections.go +++ b/tpl/collections/collections.go @@ -733,8 +733,7 @@ func (ns *Namespace) Union(l1, l2 any) (any, error) { } } -// Uniq takes returns a new list with all duplicate elements in the list l removed. -// duplicate elements removed. +// Uniq returns a new list with duplicate elements in the list l removed. func (ns *Namespace) Uniq(l any) (any, error) { if l == nil { return make([]any, 0), nil |