From 459317097b5e7eb2c155e899ad8d3c88b07f822e Mon Sep 17 00:00:00 2001
From: Mechiel Lukkien <mechiel@ueber.net>
Date: Thu, 22 Jun 2023 21:27:52 +0200
Subject: [PATCH] fix typo's and old reference

---
 README.md          | 2 +-
 autotls/autotls.go | 4 ++--
 quickstart_test.go | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index e1e75b0..182b839 100644
--- a/README.md
+++ b/README.md
@@ -138,7 +138,7 @@ But perhaps in the future...
 - Delivery to (unix) OS system users
 - Mailing list manager
 - Support for pluggable delivery mechanisms
-- iOS Mail push notifications (with XAPPLEPUSHSERVICE undocumened imap
+- iOS Mail push notifications (with XAPPLEPUSHSERVICE undocumented imap
   extension and hard to get APNS certificate)
 
 
diff --git a/autotls/autotls.go b/autotls/autotls.go
index 74cd726..20221d6 100644
--- a/autotls/autotls.go
+++ b/autotls/autotls.go
@@ -255,8 +255,8 @@ var errHostNotAllowed = errors.New("autotls: host not in allowlist")
 
 // HostPolicy decides if a host is allowed for use with ACME, i.e. whether a
 // certificate will be returned if present and/or will be requested if not yet
-// present. Only hosts added with AllowHostname are allowed. During shutdown, no
-// new connections are allowed.
+// present. Only hosts added with SetAllowedHostnames are allowed. During shutdown,
+// no new connections are allowed.
 func (m *Manager) HostPolicy(ctx context.Context, host string) (rerr error) {
 	log := xlog.WithContext(ctx)
 	defer func() {
diff --git a/quickstart_test.go b/quickstart_test.go
index 61aa6d9..76b149d 100644
--- a/quickstart_test.go
+++ b/quickstart_test.go
@@ -105,7 +105,7 @@ func TestDeliver(t *testing.T) {
 			case <-timer.C:
 				err = fmt.Errorf("nothing within %v", period)
 			}
-			xcheck(err, "waiting for imap untagged repsonse to idle")
+			xcheck(err, "waiting for imap untagged response to idle")
 			imaperr <- nil
 		}()