Skip to content

Commit d4762a8

Browse files
authored
Merge pull request #161 from thockin/master
Fix comments on optional sink interfaces
2 parents b10dd33 + 5b49379 commit d4762a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

logr.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ type LogSink interface {
467467
WithName(name string) LogSink
468468
}
469469

470-
// CallDepthLogSink represents a Logger that knows how to climb the call stack
470+
// CallDepthLogSink represents a LogSink that knows how to climb the call stack
471471
// to identify the original call site and can offset the depth by a specified
472472
// number of frames. This is useful for users who have helper functions
473473
// between the "real" call site and the actual calls to Logger methods.
@@ -492,7 +492,7 @@ type CallDepthLogSink interface {
492492
WithCallDepth(depth int) LogSink
493493
}
494494

495-
// CallStackHelperLogSink represents a Logger that knows how to climb
495+
// CallStackHelperLogSink represents a LogSink that knows how to climb
496496
// the call stack to identify the original call site and can skip
497497
// intermediate helper functions if they mark themselves as
498498
// helper. Go's testing package uses that approach.

0 commit comments

Comments
 (0)