Fix description of collections.Uniq

This commit is contained in:
Joe Mooring authored and Bjørn Erik Pedersen committed 2023-01-31 08:12:45 +01:00
1 parent e2cfc3d5a2
commit 4ccc8cfb4c
1 file changed
+1 -2
+1 -2
View File
@@ -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