Commit 64640bd1 authored by Miek Gieben's avatar Miek Gieben Committed by GitHub

pkg/debug: Update comment (#704)

We already lowercase before comparing.

Fixes #447
parent 30217a4c
......@@ -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 ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment