diff --git a/client.go b/client.go index 92add4f7..881e9057 100644 --- a/client.go +++ b/client.go @@ -347,7 +347,7 @@ func (co *Conn) Read(p []byte) (n int, err error) { return n, err } -// WriteMsg sends a message throught the connection co. +// WriteMsg sends a message through the connection co. // If the message m contains a TSIG record the transaction // signature is calculated. func (co *Conn) WriteMsg(m *Msg) (err error) { @@ -358,7 +358,7 @@ func (co *Conn) WriteMsg(m *Msg) (err error) { return ErrSecret } out, mac, err = TsigGenerate(m, co.TsigSecret[t.Hdr.Name], co.tsigRequestMAC, false) - // Set for the next read, allthough only used in zone transfers + // Set for the next read, although only used in zone transfers co.tsigRequestMAC = mac } else { out, err = m.Pack() diff --git a/msg.go b/msg.go index 73ffb616..692ad64c 100644 --- a/msg.go +++ b/msg.go @@ -257,7 +257,7 @@ func packDomainName(s string, msg []byte, off int, compression map[string]int, c roBs = string(bs) bsFresh = true } - // Dont try to compress '.' + // Don't try to compress '.' if compress && roBs[begin:] != "." { if p, ok := compression[roBs[begin:]]; !ok { // Only offsets smaller than this can be used. diff --git a/server.go b/server.go index 0ba076b2..edc5c625 100644 --- a/server.go +++ b/server.go @@ -287,7 +287,7 @@ type Server struct { // Secret(s) for Tsig map[]. TsigSecret map[string]string // Unsafe instructs the server to disregard any sanity checks and directly hand the message to - // the handler. It will specfically not check if the query has the QR bit not set. + // the handler. It will specifically not check if the query has the QR bit not set. Unsafe bool // If NotifyStartedFunc is set it is called once the server has started listening. NotifyStartedFunc func() diff --git a/zgenerate.go b/zgenerate.go index c506e962..ce7b540a 100644 --- a/zgenerate.go +++ b/zgenerate.go @@ -15,7 +15,7 @@ import ( // * [[ttl][class]] // * type // * rhs (rdata) -// But we are lazy here, only the range is parsed *all* occurences +// But we are lazy here, only the range is parsed *all* occurrences // of $ after that are interpreted. // Any error are returned as a string value, the empty string signals // "no error".