Skip to content

Commit

Permalink
Fix IntoContext() documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
  • Loading branch information
zhijianli88 committed Jan 7, 2021
1 parent dea6dee commit 010a624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func FromContext(ctx context.Context, keysAndValues ...interface{}) logr.Logger
return log.WithValues(keysAndValues...)
}

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

0 comments on commit 010a624

Please sign in to comment.