From 5b49379682bf4ce8b92140de4300525f56ff62ed Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Sun, 20 Nov 2022 15:24:12 -0800 Subject: [PATCH] Fix comments on optional sink interfaces --- logr.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logr.go b/logr.go index 87886aa..6091b41 100644 --- a/logr.go +++ b/logr.go @@ -467,7 +467,7 @@ type LogSink interface { WithName(name string) LogSink } -// CallDepthLogSink represents a Logger that knows how to climb the call stack +// CallDepthLogSink represents a LogSink that knows how to climb the call stack // to identify the original call site and can offset the depth by a specified // number of frames. This is useful for users who have helper functions // between the "real" call site and the actual calls to Logger methods. @@ -492,7 +492,7 @@ type CallDepthLogSink interface { WithCallDepth(depth int) LogSink } -// CallStackHelperLogSink represents a Logger that knows how to climb +// CallStackHelperLogSink represents a LogSink that knows how to climb // the call stack to identify the original call site and can skip // intermediate helper functions if they mark themselves as // helper. Go's testing package uses that approach.