Skip to content

Commit

Permalink
Fix description of collections.Uniq
Browse files Browse the repository at this point in the history
  • Loading branch information
jmooring authored and bep committed Jan 31, 2023
1 parent e2cfc3d commit 4ccc8cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tpl/collections/collections.go
Expand Up @@ -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
Expand Down

0 comments on commit 4ccc8cf

Please sign in to comment.