Skip to content

Commit 1c6c796

Browse files
author
xiaoxiangxianzi
authored
chore: fix some comments (miekg#1547)
Signed-off-by: xiaoxiangxianzi <[email protected]>
1 parent 96cf8ba commit 1c6c796

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: msg.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ func (h *MsgHdr) String() string {
714714
return s
715715
}
716716

717-
// Pack packs a Msg: it is converted to to wire format.
717+
// Pack packs a Msg: it is converted to wire format.
718718
// If the dns.Compress is true the message will be in compressed wire format.
719719
func (dns *Msg) Pack() (msg []byte, err error) {
720720
return dns.PackBuffer(nil)

Diff for: scan.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,7 @@ func stringToCm(token string) (e, m uint8, ok bool) {
12831283
cmeters *= 10
12841284
}
12851285
}
1286-
// This slighly ugly condition will allow omitting the 'meter' part, like .01 (meaning 0.01m = 1cm).
1286+
// This slightly ugly condition will allow omitting the 'meter' part, like .01 (meaning 0.01m = 1cm).
12871287
if !hasCM || mStr != "" {
12881288
meters, err = strconv.Atoi(mStr)
12891289
// RFC1876 states the max value is 90000000.00. The latter two conditions enforce it.

Diff for: xfr.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ func (t *Transfer) inIxfr(q *Msg, c chan *Envelope) {
188188
if v, ok := rr.(*SOA); ok {
189189
if v.Serial == serial {
190190
n++
191-
// quit if it's a full axfr or the the servers' SOA is repeated the third time
191+
// quit if it's a full axfr or the servers' SOA is repeated the third time
192192
if axfr && n == 2 || n == 3 {
193193
c <- &Envelope{in.Answer, nil}
194194
return

0 commit comments

Comments
 (0)