@marcel91200 / caddy Mirror · read-only / commits / 3443a8a0
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, 04:15 UTC

fix some comments (#5508)

Signed-off-by: cui fliter <imcusg@gmail.com>

cui fliter committed Apr 25, 2023 at 23:54 UTC 3443a8a056c7fe1a67cbf64f7e7f8acdc3762416
3 files changed +3 -3
modules/caddyhttp/celmatcher.go
+1 -1
@@ -496,7 +496,7 @@ func celMatcherStringMacroExpander(funcName string) parser.MacroExpander {
496 }
497 }
498
499 -// celMatcherStringMacroExpander validates that the macro is called a single
499 +// celMatcherJSONMacroExpander validates that the macro is called a single
500 // map literal argument.
501 //
502 // The following function call is returned: <funcName>(request, arg)
modules/caddyhttp/fileserver/matcher.go
+1 -1
@@ -558,7 +558,7 @@ func indexFold(haystack, needle string) int {
558 return -1
559 }
560
561 -// isCELMapLiteral returns whether the expression resolves to a map literal containing
561 +// isCELTryFilesLiteral returns whether the expression resolves to a map literal containing
562 // only string keys with or a placeholder call.
563 func isCELTryFilesLiteral(e *exprpb.Expr) bool {
564 switch e.GetExprKind().(type) {
modules/caddyhttp/templates/tplcontext.go
+1 -1
@@ -397,7 +397,7 @@ func (c TemplateContext) funcFileExists(filename string) (bool, error) {
397 return false, nil
398 }
399
400 -// funcStat returns Stat of a filename
400 +// funcFileStat returns Stat of a filename
401 func (c TemplateContext) funcFileStat(filename string) (fs.FileInfo, error) {
402 if c.Root == nil {
403 return nil, fmt.Errorf("root file system not specified")