File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -157,9 +157,6 @@ func (w *withStack) Format(s fmt.State, verb rune) {
157157
158158// Wrap returns an error annotating err with message.
159159// If err is nil, Wrap returns nil.
160- // Wrap is conceptually the same as calling
161- //
162- // errors.WithStack(errors.WithMessage(err, msg))
163160func Wrap (err error , message string ) error {
164161 if err == nil {
165162 return nil
@@ -176,9 +173,6 @@ func Wrap(err error, message string) error {
176173
177174// Wrapf returns an error annotating err with the format specifier.
178175// If err is nil, Wrapf returns nil.
179- // Wrapf is conceptually the same as calling
180- //
181- // errors.WithStack(errors.WithMessage(err, format, args...))
182176func Wrapf (err error , format string , args ... interface {}) error {
183177 if err == nil {
184178 return nil
You can’t perform that action at this time.
0 commit comments