Fix some spelling errors in comment (#2533)
Signed-off-by: zhoulin xie <zhoulin.xie@daocloud.io>
This commit is contained in:
parent
39cf482348
commit
06d945fc32
2 changed files with 2 additions and 2 deletions
2
plugin/cache/error_test.go
vendored
2
plugin/cache/error_test.go
vendored
|
@ -26,7 +26,7 @@ func TestFormErr(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// formErrHanlder is a fake plugin implementation which returns a FORMERR for a reply.
|
// formErrHandler is a fake plugin implementation which returns a FORMERR for a reply.
|
||||||
func formErrHandler() plugin.Handler {
|
func formErrHandler() plugin.Handler {
|
||||||
return plugin.HandlerFunc(func(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) {
|
return plugin.HandlerFunc(func(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) {
|
||||||
m := new(dns.Msg)
|
m := new(dns.Msg)
|
||||||
|
|
|
@ -30,7 +30,7 @@ func Domain(s string) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
// PathWithWildcard ascts as Path, but if a name contains wildcards (* or any), the name will be
|
// PathWithWildcard ascts as Path, but if a name contains wildcards (* or any), the name will be
|
||||||
// chopped of before the (first) wildcard, and we do a highler evel search and
|
// chopped of before the (first) wildcard, and we do a higher level search and
|
||||||
// later find the matching names. So service.*.skydns.local, will look for all
|
// later find the matching names. So service.*.skydns.local, will look for all
|
||||||
// services under skydns.local and will later check for names that match
|
// services under skydns.local and will later check for names that match
|
||||||
// service.*.skydns.local. If a wildcard is found the returned bool is true.
|
// service.*.skydns.local. If a wildcard is found the returned bool is true.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue