Skip to content
This repository was archived by the owner on Dec 1, 2021. It is now read-only.

Commit a221380

Browse files
committed
remove incorrect comment
1 parent 9cadab9 commit a221380

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

errors.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff 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))
163160
func 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...))
182176
func Wrapf(err error, format string, args ...interface{}) error {
183177
if err == nil {
184178
return nil

0 commit comments

Comments
 (0)