From a6199cf814d676a11cc9e2abad81b48859198aa4 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Thu, 3 Mar 2022 11:12:37 -0700 Subject: templates: Fix docs for .Args --- modules/caddyhttp/templates/templates.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/caddyhttp/templates') diff --git a/modules/caddyhttp/templates/templates.go b/modules/caddyhttp/templates/templates.go index d4505f0..20eed8a 100644 --- a/modules/caddyhttp/templates/templates.go +++ b/modules/caddyhttp/templates/templates.go @@ -43,10 +43,10 @@ func init() { // // ##### `.Args` // -// Access arguments passed to this page/context, for example as the result of a `include`. +// A slice of arguments passed to this page/context, for example as the result of a `include`. // // ``` -// {{.Args 0}} // first argument +// {{index .Args 0}} // first argument // ``` // // ##### `.Cookie` -- cgit v1.2.3