slightly better documentation

This commit is contained in:
Miek Gieben 2012-01-16 21:57:57 +01:00
parent 240879c40d
commit c0af79d3b3
1 changed files with 3 additions and 3 deletions

6
msg.go
View File

@ -174,11 +174,11 @@ var Rcode_str = map[int]string{
// Domain names are a sequence of counted strings
// split at the dots. They end with a zero-length string.
// If compression is want compress must be true and the compression
// map, needs to hold a mapping between domain names and offsets
// pointing into msg[].
// PackDomainName packs a domain name s into msg[off:].
// If compression is wanted compress must be true and the compression
// map, needs to hold a mapping between domain names and offsets
// pointing into msg[].
func PackDomainName(s string, msg []byte, off int, compression map[string]int, compress bool) (off1 int, ok bool) {
// Add trailing dot to canonicalize name.
lenmsg := len(msg)