@marcel91200 / caddy Mirror · read-only / commits / a6199cf8
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 13, 21:45 UTC

templates: Fix docs for .Args

Matthew Holt committed Mar 3, 2022 at 11:12 UTC a6199cf814d676a11cc9e2abad81b48859198aa4
1 file changed +2 -2
modules/caddyhttp/templates/templates.go
+2 -2
@@ -43,10 +43,10 @@ func init() {
43 //
44 // ##### `.Args`
45 //
46 -// Access arguments passed to this page/context, for example as the result of a `include`.
46 +// A slice of arguments passed to this page/context, for example as the result of a `include`.
47 //
48 // ```
49 -// {{.Args 0}} // first argument
49 +// {{index .Args 0}} // first argument
50 // ```
51 //
52 // ##### `.Cookie`