Skip to content

Commit ff82b97

Browse files
authored
Merge pull request #379 from lowang-bh/fixWarning
resolve comments warning
2 parents 5ac9b76 + 6c35c6a commit ff82b97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

klog.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ func (l *loggingT) printWithFileLine(s severity.Severity, logger *logWriter, fil
759759
l.output(s, logger, buf, 2 /* depth */, file, line, alsoToStderr)
760760
}
761761

762-
// if loggr is specified, will call loggr.Error, otherwise output with logging module.
762+
// if logger is specified, will call logger.Error, otherwise output with logging module.
763763
func (l *loggingT) errorS(err error, logger *logWriter, filter LogFilter, depth int, msg string, keysAndValues ...interface{}) {
764764
if filter != nil {
765765
msg, keysAndValues = filter.FilterS(msg, keysAndValues)
@@ -771,7 +771,7 @@ func (l *loggingT) errorS(err error, logger *logWriter, filter LogFilter, depth
771771
l.printS(err, severity.ErrorLog, depth+1, msg, keysAndValues...)
772772
}
773773

774-
// if loggr is specified, will call loggr.Info, otherwise output with logging module.
774+
// if logger is specified, will call logger.Info, otherwise output with logging module.
775775
func (l *loggingT) infoS(logger *logWriter, filter LogFilter, depth int, msg string, keysAndValues ...interface{}) {
776776
if filter != nil {
777777
msg, keysAndValues = filter.FilterS(msg, keysAndValues)
@@ -783,7 +783,7 @@ func (l *loggingT) infoS(logger *logWriter, filter LogFilter, depth int, msg str
783783
l.printS(nil, severity.InfoLog, depth+1, msg, keysAndValues...)
784784
}
785785

786-
// printS is called from infoS and errorS if loggr is not specified.
786+
// printS is called from infoS and errorS if logger is not specified.
787787
// set log severity by s
788788
func (l *loggingT) printS(err error, s severity.Severity, depth int, msg string, keysAndValues ...interface{}) {
789789
// Only create a new buffer if we don't have one cached.

0 commit comments

Comments
 (0)