aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Wood <[email protected]>2024-10-21 15:39:58 +0800
committerGitHub <[email protected]>2024-10-21 07:39:58 +0000
commit1391e8ed9ae16e233c904b31fe4da2d687149820 (patch)
tree4ad93bdbaa5273b1e1eeae68aff0762f85bd8fc3
parent9753c4451077d4459ec10cb3df27ab9dc4456290 (diff)
downloadcaddy-1391e8ed9ae16e233c904b31fe4da2d687149820.tar.gz
caddy-1391e8ed9ae16e233c904b31fe4da2d687149820.zip
chore: fix some function names in comment (#6650)
-rw-r--r--caddyconfig/httpcaddyfile/addresses.go2
-rw-r--r--caddytest/integration/mockdns_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/caddyconfig/httpcaddyfile/addresses.go b/caddyconfig/httpcaddyfile/addresses.go
index 1c331eadc..c9057ab4e 100644
--- a/caddyconfig/httpcaddyfile/addresses.go
+++ b/caddyconfig/httpcaddyfile/addresses.go
@@ -31,7 +31,7 @@ import (
"github.com/caddyserver/caddy/v2/modules/caddyhttp"
)
-// mapAddressToServerBlocks returns a map of listener address to list of server
+// mapAddressToProtocolToServerBlocks returns a map of listener address to list of server
// blocks that will be served on that address. To do this, each server block is
// expanded so that each one is considered individually, although keys of a
// server block that share the same address stay grouped together so the config
diff --git a/caddytest/integration/mockdns_test.go b/caddytest/integration/mockdns_test.go
index 1b2efb653..615116a3a 100644
--- a/caddytest/integration/mockdns_test.go
+++ b/caddytest/integration/mockdns_test.go
@@ -34,7 +34,7 @@ func (MockDNSProvider) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
return nil
}
-// AppendsRecords appends DNS records to the zone.
+// AppendRecords appends DNS records to the zone.
func (MockDNSProvider) AppendRecords(ctx context.Context, zone string, recs []libdns.Record) ([]libdns.Record, error) {
return nil, nil
}