Skip to content

Commit

Permalink
Refactor: make code in comment valid and runable (#654)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpechenenko authored Mar 2, 2024
1 parent 582007f commit e5edd4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
//
Expand Down

0 comments on commit e5edd4b

Please sign in to comment.