فهرست منبع

Fix comment on WithMessage function (#86)

Nick Miyake 9 سال پیش
والد
کامیت
3a4fafe48b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      errors.go

+ 1 - 1
errors.go

@@ -202,7 +202,7 @@ func Wrapf(err error, format string, args ...interface{}) error {
 }
 
 // WithMessage annotates err with a new message.
-// If err is nil, WithStack returns nil.
+// If err is nil, WithMessage returns nil.
 func WithMessage(err error, message string) error {
 	if err == nil {
 		return nil