fix mis-spelling (#3310)

Signed-off-by: xieyanker <xjsisnice@gmail.com>
This commit is contained in:
xieyanker 2019-09-26 20:19:45 +08:00 committed by Miek Gieben
parent 27e22b0696
commit 9a5e4fa1a0
11 changed files with 13 additions and 13 deletions

View file

@ -5,7 +5,7 @@ client's search path resolution by performing these lookups on the server...
The server has a copy (via AutoPathFunc) of the client's search path and on
receiving a query it first establishes if the suffix matches the FIRST configured
element. If no match can be found the query will be forwarded up the plugin
chain without interference (iff 'fallthrough' has been set).
chain without interference (if 'fallthrough' has been set).
If the query is deemed to fall in the search path the server will perform the
queries with each element of the search path appended in sequence until a

View file

@ -15,7 +15,7 @@ import (
"github.com/miekg/dns"
)
// Cache is plugin that looks up responses in a cache and caches replies.
// Cache is a plugin that looks up responses in a cache and caches replies.
// It has a success and a denial of existence cache.
type Cache struct {
Next plugin.Handler

View file

@ -79,12 +79,12 @@ func (d Dnssec) getDNSKEY(state request.Request, zone string, do bool, server st
return m
}
// Return true iff this is a zone key with the SEP bit unset. This implies a ZSK (rfc4034 2.1.1).
// Return true if this is a zone key with the SEP bit unset. This implies a ZSK (rfc4034 2.1.1).
func (k DNSKEY) isZSK() bool {
return k.K.Flags&(1<<8) == (1<<8) && k.K.Flags&1 == 0
}
// Return true iff this is a zone key with the SEP bit set. This implies a KSK (rfc4034 2.1.1).
// Return true if this is a zone key with the SEP bit set. This implies a KSK (rfc4034 2.1.1).
func (k DNSKEY) isKSK() bool {
return k.K.Flags&(1<<8) == (1<<8) && k.K.Flags&1 == 1
}

View file

@ -11,7 +11,7 @@ import (
var f *Forward
// abuse init to setup a environment to test against. This start another server to that will
// abuse init to setup an environment to test against. This start another server to that will
// reflect responses.
func init() {
f = New()

View file

@ -49,7 +49,7 @@ func (k *Kubernetes) AutoPath(state request.Request) []string {
return search
}
// podWithIP return the api.Pod for source IP ip. It returns nil if nothing can be found.
// podWithIP return the api.Pod for source IP. It returns nil if nothing can be found.
func (k *Kubernetes) podWithIP(ip string) *object.Pod {
ps := k.APIConn.PodIndex(ip)
if len(ps) == 0 {

View file

@ -46,7 +46,7 @@ func ToService(obj interface{}) interface{} {
}
if len(svc.Spec.Ports) == 0 {
// Add sentinal if there are no ports.
// Add sentinel if there are no ports.
s.Ports = []api.ServicePort{{Port: -1}}
} else {
s.Ports = make([]api.ServicePort, len(svc.Spec.Ports))

View file

@ -1,4 +1,4 @@
// Package loadbalance is plugin for rewriting responses to do "load balancing"
// Package loadbalance is a plugin for rewriting responses to do "load balancing"
package loadbalance
import (
@ -9,7 +9,7 @@ import (
"github.com/miekg/dns"
)
// RoundRobin is plugin to rewrite responses for "load balancing".
// RoundRobin is a plugin to rewrite responses for "load balancing".
type RoundRobin struct {
Next plugin.Handler
}

View file

@ -6,7 +6,7 @@ import (
"sync"
)
// list is structure that holds the plugins that signals readiness for this server block.
// list is a structure that holds the plugins that signals readiness for this server block.
type list struct {
sync.RWMutex
rs []Readiness

View file

@ -1,4 +1,4 @@
// Package rewrite is plugin for rewriting requests internally to something different.
// Package rewrite is a plugin for rewriting requests internally to something different.
package rewrite
import (

View file

@ -29,7 +29,7 @@ const (
Continue = "continue"
)
// Rewrite is plugin to rewrite requests internally before being handled.
// Rewrite is a plugin to rewrite requests internally before being handled.
type Rewrite struct {
Next plugin.Handler
Rules []Rule

View file

@ -55,7 +55,7 @@ func TestSecondaryParse(t *testing.T) {
}
}
// This is only set *iff* we have a zone (i.e. not in all tests above)
// This is only set *if* we have a zone (i.e. not in all tests above)
for _, v := range s.Z {
if x := v.TransferFrom[0]; x != test.transferFrom {
t.Fatalf("Test %d transform from names don't match expected %q, but got %q", i, test.transferFrom, x)