diff --git a/doc.go b/doc.go index f684324..d32b18b 100644 --- a/doc.go +++ b/doc.go @@ -31,8 +31,8 @@ // } // defer shutdown(ctx) // -// // Wire into the launcher so shutdown runs before process exit: -// // launcher.BeforeStop(func() error { return shutdown(ctx) }) +// // Place the defer before lc.Run() so shutdown fires after the launcher +// // stops, before the process exits. // } // // # Local Development: console mode