mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
Fix description of collections.Uniq
This commit is contained in:
parent
e2cfc3d5a2
commit
4ccc8cfb4c
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue