doc: AppendInvoke: Fix typo (#54)

One of the examples for AppendInvoke used `AppendInvoke(err, ...)` but
the argument is supposed to be a `*error`. Fix the example.
This commit is contained in:
Abhinav Gupta 2021-07-12 10:57:28 -07:00 committed by GitHub
parent ee7346af51
commit d49c2ba574
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@
// if err != nil {
// return err
// }
// defer multierr.AppendInvoke(err, multierr.Close(conn))
// defer multierr.AppendInvoke(&err, multierr.Close(conn))
// // ...
// }
//