Skip to content

Commit ea5fe81

Browse files
committed
bytes -> bits typo
1 parent 7697412 commit ea5fe81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dns/dnsmessage/message.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1998,7 +1998,7 @@ func (n *Name) pack(msg []byte, compression map[string]int, compressionOff int)
19981998
}
19991999

20002000
// Miss. Add the suffix to the compression table if the
2001-
// offset can be stored in the available 14 bytes.
2001+
// offset can be stored in the available 14 bits.
20022002
newPtr := len(msg) - compressionOff
20032003
if newPtr <= int(^uint16(0)>>2) {
20042004
compression[string(n.Data[i:])] = newPtr

0 commit comments

Comments
 (0)