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

Commit

Permalink
remove incorrect comment
Browse files Browse the repository at this point in the history
  • Loading branch information
davecheney committed Aug 8, 2016
1 parent 9cadab9 commit a221380
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a221380

Please sign in to comment.