diff --git a/Embedding-Caddy-in-your-Go-program.md b/Embedding-Caddy-in-your-Go-program.md index c59e7a1..223b86c 100644 --- a/Embedding-Caddy-in-your-Go-program.md +++ b/Embedding-Caddy-in-your-Go-program.md @@ -31,7 +31,8 @@ You can also restart Caddy: ```go // On Unix systems, you get graceful restarts. // To use same Caddyfile, just pass in nil. -err = instance.Restart(newCaddyfile) +// Be sure to replace the old instance with the new one! +instance, err = instance.Restart(newCaddyfile) if err != nil { log.Fatal(err) }