summaryrefslogtreecommitdiffstats
path: root/tpl
diff options
context:
space:
mode:
authorJoe Mooring <joe.mooring@veriphor.com>2023-07-20 12:29:25 -0700
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-07-28 09:51:01 +0200
commitdc2a544fac7a3f9cb8bff70d5cbe92b37dee98d1 (patch)
treedea07927d64d4c36e4a2fcb336dbfbbac10abb2d /tpl
parent916397320b56b74e84f466cbab3ca205d676e377 (diff)
tpl/collections: Fix description of apply function
The collections.Apply template function cannot be used with maps.
Diffstat (limited to 'tpl')
-rw-r--r--tpl/collections/apply.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tpl/collections/apply.go b/tpl/collections/apply.go
index 1dc09c8e5..397ba0fdb 100644
--- a/tpl/collections/apply.go
+++ b/tpl/collections/apply.go
@@ -24,7 +24,7 @@ import (
"github.com/gohugoio/hugo/tpl"
)
-// Apply takes a map, array, or slice c and returns a new slice with the function fname applied over it.
+// Apply takes an array or slice c and returns a new slice with the function fname applied over it.
func (ns *Namespace) Apply(ctx context.Context, c any, fname string, args ...any) (any, error) {
if c == nil {
return make([]any, 0), nil