Skip to content

Commit 4894ab5

Browse files
committed
doc
1 parent e1dcfae commit 4894ab5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ import (
237237
"log/slog"
238238
)
239239

240-
recovery := RecoverHandlerError(
240+
recovery := slogformatter.RecoverHandlerError(
241241
func(ctx context.Context, record slog.Record, err error) {
242-
// will be called only if subsequent handlers fail and return an error
242+
// will be called only if subsequent handlers fail or return an error
243243
log.Println(err.Error())
244244
},
245245
)

0 commit comments

Comments
 (0)