From e5edd4b8ec0845c561d88e9bcdb3fe57b2acc249 Mon Sep 17 00:00:00 2001 From: Konstantin Pechenenko Date: Sun, 3 Mar 2024 06:52:46 +0700 Subject: [PATCH] Refactor: make code in comment valid and runable (#654) --- log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log.go b/log.go index 9fec7cc3..6c1d4ead 100644 --- a/log.go +++ b/log.go @@ -24,7 +24,7 @@ // // Sub-loggers let you chain loggers with additional context: // -// sublogger := log.With().Str("component": "foo").Logger() +// sublogger := log.With().Str("component", "foo").Logger() // sublogger.Info().Msg("hello world") // // Output: {"time":1494567715,"level":"info","message":"hello world","component":"foo"} //