Fix documentation for these public functions

This commit is contained in:
Miek Gieben 2014-02-05 21:38:12 +00:00
parent 5eec7f362c
commit 95fd782f44
1 changed files with 3 additions and 3 deletions

6
msg.go
View File

@ -1205,8 +1205,8 @@ func packBase32(s []byte) ([]byte, error) {
return buf, nil
}
// Resource record packer, pack rr into msg[off:]. See PackDomainName for documentation
// about the compression.
// PackRR packs a resource record rr into msg[off:].
// See PackDomainName for documentation about the compression.
func PackRR(rr RR, msg []byte, off int, compression map[string]int, compress bool) (off1 int, err error) {
if rr == nil {
return len(msg), &Error{err: "nil rr"}
@ -1220,7 +1220,7 @@ func PackRR(rr RR, msg []byte, off int, compression map[string]int, compress boo
return off1, nil
}
// Resource record unpacker, unpack msg[off:] into an RR.
// UnpackRR unpacks msg[off:] into an RR.
func UnpackRR(msg []byte, off int) (rr RR, off1 int, err error) {
// unpack just the header, to find the rr type and length
var h RR_Header