fix some comments (#5508)

Signed-off-by: cui fliter <imcusg@gmail.com>
This commit is contained in:
cui fliter 2023-04-25 23:54:42 +08:00 committed by GitHub
parent 2943c41884
commit 3443a8a056
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -496,7 +496,7 @@ func celMatcherStringMacroExpander(funcName string) parser.MacroExpander {
}
}
// celMatcherStringMacroExpander validates that the macro is called a single
// celMatcherJSONMacroExpander validates that the macro is called a single
// map literal argument.
//
// The following function call is returned: <funcName>(request, arg)

View File

@ -558,7 +558,7 @@ func indexFold(haystack, needle string) int {
return -1
}
// isCELMapLiteral returns whether the expression resolves to a map literal containing
// isCELTryFilesLiteral returns whether the expression resolves to a map literal containing
// only string keys with or a placeholder call.
func isCELTryFilesLiteral(e *exprpb.Expr) bool {
switch e.GetExprKind().(type) {

View File

@ -397,7 +397,7 @@ func (c TemplateContext) funcFileExists(filename string) (bool, error) {
return false, nil
}
// funcStat returns Stat of a filename
// funcFileStat returns Stat of a filename
func (c TemplateContext) funcFileStat(filename string) (fs.FileInfo, error) {
if c.Root == nil {
return nil, fmt.Errorf("root file system not specified")