Skip to content

Commit

Permalink
multi-handler & auto-annotation documentation to Handle
Browse files Browse the repository at this point in the history
  • Loading branch information
lainio committed Feb 20, 2024
1 parent c9da721 commit 45fa921
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion err2.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ var (
// of them resets the error like Reset (notice other predefined error handlers)
// in next sample:
//
// defer err2.Handle(err2.Noop, err2.Reset, err2.Log) // err2.Log not called!
// defer err2.Handle(err2.Noop, err2.Log) // 2 handlers ==> annotated by err2
// defer err2.Handle(nil, err2.Noop, err2.Log) // nil disables auto-annotation
//
// If you need to stop general panics in handler, you can do that by giving a
// panic handler function:
Expand Down

0 comments on commit 45fa921

Please sign in to comment.