]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
Fix description of collections.Uniq
authorJoe Mooring <joe.mooring@veriphor.com>
Mon, 30 Jan 2023 16:36:44 +0000 (08:36 -0800)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 31 Jan 2023 07:12:45 +0000 (08:12 +0100)
tpl/collections/collections.go

index 687669a7027710298442692e9c1a938012672850..994d5f1b430881f5042f6169f2a5fc4edb2c9ac1 100644 (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