Explorar o código

remove incorrect comment

Dave Cheney %!s(int64=9) %!d(string=hai) anos
pai
achega
a22138067a
Modificáronse 1 ficheiros con 0 adicións e 6 borrados
  1. 0 6
      errors.go

+ 0 - 6
errors.go

@@ -157,9 +157,6 @@ func (w *withStack) Format(s fmt.State, verb rune) {
 
 // Wrap returns an error annotating err with message.
 // If err is nil, Wrap returns nil.
-// Wrap is conceptually the same as calling
-//
-//     errors.WithStack(errors.WithMessage(err, msg))
 func Wrap(err error, message string) error {
 	if err == nil {
 		return nil
@@ -176,9 +173,6 @@ func Wrap(err error, message string) error {
 
 // Wrapf returns an error annotating err with the format specifier.
 // If err is nil, Wrapf returns nil.
-// Wrapf is conceptually the same as calling
-//
-//     errors.WithStack(errors.WithMessage(err, format, args...))
 func Wrapf(err error, format string, args ...interface{}) error {
 	if err == nil {
 		return nil