Преглед на файлове

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