diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-03-16 18:45:45 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-03-17 02:51:43 -0400 |
commit | e082cfb3b8f8226067078cc410e4997fd1cf14df (patch) | |
tree | 4fe651510fa4179e875f82aebdc7405b3b752c7a /lib/textui | |
parent | 2ee7091933d2c07338dfb4699ce5665951b47afd (diff) |
tree-wide: Ensure that all existing method doc comments follow the expected format
Diffstat (limited to 'lib/textui')
-rw-r--r-- | lib/textui/log.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/textui/log.go b/lib/textui/log.go index 0a10ef6..6cf9abe 100644 --- a/lib/textui/log.go +++ b/lib/textui/log.go @@ -37,7 +37,7 @@ var _ pflag.Value = (*LogLevelFlag)(nil) // Type implements pflag.Value. func (lvl *LogLevelFlag) Type() string { return "loglevel" } -// Type implements pflag.Value. +// Set implements pflag.Value. func (lvl *LogLevelFlag) Set(str string) error { switch strings.ToLower(str) { case "error": @@ -56,7 +56,7 @@ func (lvl *LogLevelFlag) Set(str string) error { return nil } -// Type implements pflag.Value. +// String implements fmt.Stringer (and pflag.Value). func (lvl *LogLevelFlag) String() string { switch lvl.Level { case dlog.LogLevelError: |