Skip to content

Commit

Permalink
Merge pull request #1320 from zhijianli88/master
Browse files Browse the repository at this point in the history
馃摉: Fix IntoContext() documentation
  • Loading branch information
k8s-ci-robot committed Jan 7, 2021
2 parents 1d63e42 + 010a624 commit 6bcef8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/log/log.go
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 6bcef8a

Please sign in to comment.