diff options
author | Matthew Holt <[email protected]> | 2022-03-03 11:12:37 -0700 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2022-03-03 11:12:37 -0700 |
commit | a6199cf814d676a11cc9e2abad81b48859198aa4 (patch) | |
tree | d9d668b8719a4167cebc15e3dc6602b710f97379 | |
parent | ceef70dbc5543436b04a5f70749be18582f35403 (diff) | |
download | caddy-a6199cf814d676a11cc9e2abad81b48859198aa4.tar.gz caddy-a6199cf814d676a11cc9e2abad81b48859198aa4.zip |
templates: Fix docs for .Args
-rw-r--r-- | modules/caddyhttp/templates/templates.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddyhttp/templates/templates.go b/modules/caddyhttp/templates/templates.go index d4505f05a..20eed8a2f 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` |