summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/templates
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2022-03-03 11:12:37 -0700
committerMatthew Holt <mholt@users.noreply.github.com>2022-03-03 11:12:37 -0700
commita6199cf814d676a11cc9e2abad81b48859198aa4 (patch)
treed9d668b8719a4167cebc15e3dc6602b710f97379 /modules/caddyhttp/templates
parentceef70dbc5543436b04a5f70749be18582f35403 (diff)
templates: Fix docs for .Args
Diffstat (limited to 'modules/caddyhttp/templates')
-rw-r--r--modules/caddyhttp/templates/templates.go4
1 files changed, 2 insertions, 2 deletions
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`