Explorar o código

Update comment.

Matt Bolt %!s(int64=6) %!d(string=hai) anos
pai
achega
4ed9929e9e
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      pkg/errors/panic.go

+ 2 - 1
pkg/errors/panic.go

@@ -43,7 +43,8 @@ var (
 	dispatcher = make(chan Panic)
 )
 
-// SetPanicHandler sets the handler that is executed when
+// SetPanicHandler sets the handler that is executed when any panic is captured by
+// HandlePanic(). Without setting a handler, the panic reporting is disabled.
 func SetPanicHandler(handler PanicHandler) error {
 	if enabled {
 		return fmt.Errorf("Panic Handler has already been set")