Skip to content

Commit 6bcef8a

Browse files
authored
Merge pull request #1320 from zhijianli88/master
📖: Fix IntoContext() documentation
2 parents 1d63e42 + 010a624 commit 6bcef8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/log/log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func FromContext(ctx context.Context, keysAndValues ...interface{}) logr.Logger
9292
return log.WithValues(keysAndValues...)
9393
}
9494

95-
// IntoContext takes a context and sets the logger as one of its keys.
95+
// IntoContext takes a context and sets the logger as one of its values.
9696
// Use FromContext function to retrieve the logger.
9797
func IntoContext(ctx context.Context, log logr.Logger) context.Context {
9898
return logr.NewContext(ctx, log)

0 commit comments

Comments
 (0)