diff --git a/docs/migrate-v1-to-v2.md b/docs/migrate-v1-to-v2.md index 74f68f5614..0186746eb0 100644 --- a/docs/migrate-v1-to-v2.md +++ b/docs/migrate-v1-to-v2.md @@ -181,6 +181,10 @@ Compiler messages you might see: cannot use c (type *cli.Command) as type cli.Command in append ``` +# Replace deprecated functions + +`cli.NewExitError()` is deprecated. Use `cli.Exit()` instead. ([Staticcheck](https://staticcheck.io/) detects this automatically and recommends replacement code.) + # Everything else Compile the code and work through any errors. Most should