mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 18:15:45 +00:00
Fix description of collections.Uniq
This commit is contained in:
1 parent
e2cfc3d5a2
commit
4ccc8cfb4c
1 file changed
+1
-2
@@ -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