From 010a6245a96428aa2d0b5bc38d01683530652d56 Mon Sep 17 00:00:00 2001 From: Li Zhijian Date: Wed, 6 Jan 2021 18:13:53 +0800 Subject: [PATCH] Fix IntoContext() documentation Signed-off-by: Li Zhijian --- pkg/log/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/log/log.go b/pkg/log/log.go index a524c79703..229ac7ec35 100644 --- a/pkg/log/log.go +++ b/pkg/log/log.go @@ -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)