mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
Fix description of collections.Uniq
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
e2cfc3d5a2
commit
4ccc8cfb4c
@@ -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
|
||||
|
Reference in New Issue
Block a user