Explorar el Código

Fix comment on WithMessage function (#86)

Nick Miyake hace 9 años
padre
commit
3a4fafe48b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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