diff options
author | 2019-08-21 16:08:55 -0400 | |
---|---|---|
committer | 2019-08-21 16:08:55 -0400 | |
commit | 3f47fc8ba4f43a074c078c71fccb8a0463d31672 (patch) | |
tree | aca616b315d0114a4351c4bdda2bdcf05a638b06 /plugin/normalize.go | |
parent | 6881d6d5854a718cd5c754f496a53f9931d6e34e (diff) | |
download | coredns-3f47fc8ba4f43a074c078c71fccb8a0463d31672.tar.gz coredns-3f47fc8ba4f43a074c078c71fccb8a0463d31672.tar.zst coredns-3f47fc8ba4f43a074c078c71fccb8a0463d31672.zip |
typo fixes (#3169)
* spelling fixes
* its/it's
Diffstat (limited to 'plugin/normalize.go')
-rw-r--r-- | plugin/normalize.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/normalize.go b/plugin/normalize.go index 6402bf8d9..1289207fd 100644 --- a/plugin/normalize.go +++ b/plugin/normalize.go @@ -12,7 +12,7 @@ import ( // See core/dnsserver/address.go - we should unify these two impls. -// Zones respresents a lists of zone names. +// Zones represents a lists of zone names. type Zones []string // Matches checks if qname is a subdomain of any of the zones in z. The match @@ -65,7 +65,7 @@ func (h Host) Normalize() string { s := string(h) _, s = parse.Transport(s) - // The error can be ignore here, because this function is called after the corefile has already been vetted. + // The error can be ignored here, because this function is called after the corefile has already been vetted. host, _, _, _ := SplitHostPort(s) return Name(host).Normalize() } @@ -76,7 +76,7 @@ func (h Host) Normalize() string { func SplitHostPort(s string) (host, port string, ipnet *net.IPNet, err error) { // If there is: :[0-9]+ on the end we assume this is the port. This works for (ascii) domain // names and our reverse syntax, which always needs a /mask *before* the port. - // So from the back, find first colon, and then check if its a number. + // So from the back, find first colon, and then check if it's a number. host = s colon := strings.LastIndex(s, ":") |