Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
pellared committed Jan 17, 2024
1 parent 0858368 commit bdeea1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions log/internal/logr.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ type logrSink struct {
Logger log.Logger
}

// Init is implementated as a dummy.
// Init is implemented as a dummy.
func (s *logrSink) Init(info logr.RuntimeInfo) {
}

// Enabled is implementated as a dummy.
// Enabled is implemented as a dummy.
func (s *logrSink) Enabled(level int) bool {
return true
}
Expand Down Expand Up @@ -59,16 +59,16 @@ func (s *logrSink) Info(level int, msg string, keysAndValues ...any) {
s.Logger.Emit(ctx, record)
}

// Error is implementated as a dummy.
// Error is implemented as a dummy.
func (s *logrSink) Error(err error, msg string, keysAndValues ...any) {
}

// WithValues is implementated as a dummy.
// WithValues is implemented as a dummy.
func (s *logrSink) WithValues(keysAndValues ...any) logr.LogSink {
return s
}

// WithName is implementated as a dummy.
// WithName is implemented as a dummy.
func (s *logrSink) WithName(name string) logr.LogSink {
return s
}
Expand Down
6 changes: 3 additions & 3 deletions log/internal/slog.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ func (h *slogHandler) Handle(ctx context.Context, r slog.Record) error {
return nil
}

// Enabled is implementated as a dummy.
// Enabled is implemented as a dummy.
func (h *slogHandler) Enabled(_ context.Context, _ slog.Level) bool {
return true
}

// WithAttrs is implementated as a dummy.
// WithAttrs is implemented as a dummy.
func (h *slogHandler) WithAttrs(attrs []slog.Attr) slog.Handler {
return h
}

// WithGroup is implementated as a dummy.
// WithGroup is implemented as a dummy.
func (h *slogHandler) WithGroup(name string) slog.Handler {
return h
}
Expand Down

0 comments on commit bdeea1f

Please sign in to comment.