diff --git a/README.md b/README.md index 8b7d9b22..de38839c 100644 --- a/README.md +++ b/README.md @@ -910,7 +910,7 @@ func main() { Cache: autocert.DirCache("/var/www/.cache"), } - log.Fatal(autotls.RunWithManager(r, m)) + log.Fatal(autotls.RunWithManager(r, &m)) } ``` diff --git a/examples/auto-tls/example2.go b/examples/auto-tls/example2.go index ab8b81e7..01718689 100644 --- a/examples/auto-tls/example2.go +++ b/examples/auto-tls/example2.go @@ -22,5 +22,5 @@ func main() { Cache: autocert.DirCache("/var/www/.cache"), } - log.Fatal(autotls.RunWithManager(r, m)) + log.Fatal(autotls.RunWithManager(r, &m)) }