aboutsummaryrefslogtreecommitdiff
path: root/middleware/pkg/debug/debug.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2017-06-03 08:34:42 +0100
committerGravatar GitHub <noreply@github.com> 2017-06-03 08:34:42 +0100
commit64640bd1a02b29a2820a9e56b8e50622ac23325c (patch)
tree08eb57eda71766b3bdc606892d056fa71a997b5a /middleware/pkg/debug/debug.go
parent30217a4cb258900063079142fe3d2f5f6a2ad635 (diff)
downloadcoredns-64640bd1a02b29a2820a9e56b8e50622ac23325c.tar.gz
coredns-64640bd1a02b29a2820a9e56b8e50622ac23325c.tar.zst
coredns-64640bd1a02b29a2820a9e56b8e50622ac23325c.zip
pkg/debug: Update comment (#704)
We already lowercase before comparing. Fixes #447
Diffstat (limited to 'middleware/pkg/debug/debug.go')
-rw-r--r--middleware/pkg/debug/debug.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/pkg/debug/debug.go b/middleware/pkg/debug/debug.go
index 186872f12..7da79608b 100644
--- a/middleware/pkg/debug/debug.go
+++ b/middleware/pkg/debug/debug.go
@@ -7,7 +7,7 @@ const Name = "o-o.debug."
// IsDebug checks if name is a debugging name, i.e. starts with o-o.debug.
// it returns the empty string if it is not a debug message, otherwise it will return the
-// name with o-o.debug. stripped off. Must be called with name lowercased.
+// name with o-o.debug. stripped off. Name will be lowercased before comparing.
func IsDebug(name string) string {
if len(name) == len(Name) {
return ""