aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/compiler/check.go2
-rw-r--r--pkg/log/log.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/compiler/check.go b/pkg/compiler/check.go
index 00695b6b1..aa83f8c8d 100644
--- a/pkg/compiler/check.go
+++ b/pkg/compiler/check.go
@@ -423,7 +423,7 @@ type parentDesc struct {
fields []*ast.Field
}
-// templateName return the part before '[' for full template names.
+// templateBase return the part before '[' for full template names.
func templateBase(name string) string {
if pos := strings.IndexByte(name, '['); pos != -1 {
return name[:pos]
diff --git a/pkg/log/log.go b/pkg/log/log.go
index f8a292320..95cdb7fc8 100644
--- a/pkg/log/log.go
+++ b/pkg/log/log.go
@@ -29,7 +29,7 @@ var (
prependTime = true // for testing
)
-// EnableCaching enables in memory caching of log output.
+// EnableLogCaching enables in memory caching of log output.
// Caches up to maxLines, but no more than maxMem bytes.
// Cached output can later be queried with CachedOutput.
func EnableLogCaching(maxLines, maxMem int) {