فهرست منبع

Update comment.

Matt Bolt 6 سال پیش
والد
کامیت
4ed9929e9e
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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")