We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9da721 commit 45fa921Copy full SHA for 45fa921
err2.go
@@ -79,7 +79,8 @@ var (
79
// of them resets the error like Reset (notice other predefined error handlers)
80
// in next sample:
81
//
82
-// 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
83
+// defer err2.Handle(nil, err2.Noop, err2.Log) // nil disables auto-annotation
84
85
// If you need to stop general panics in handler, you can do that by giving a
86
// panic handler function:
0 commit comments