Skip to content

Commit

Permalink
doc: AppendInvoke: Fix typo (#54)
Browse files Browse the repository at this point in the history
One of the examples for AppendInvoke used `AppendInvoke(err, ...)` but
the argument is supposed to be a `*error`. Fix the example.
  • Loading branch information
abhinav committed Jul 12, 2021
1 parent ee7346a commit d49c2ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion error.go
Expand Up @@ -103,7 +103,7 @@
// if err != nil {
// return err
// }
// defer multierr.AppendInvoke(err, multierr.Close(conn))
// defer multierr.AppendInvoke(&err, multierr.Close(conn))
// // ...
// }
//
Expand Down

0 comments on commit d49c2ba

Please sign in to comment.