doc tweaks

This commit is contained in:
Miek Gieben 2012-09-01 17:06:24 +02:00
parent ff946625a6
commit 6e9317868b
3 changed files with 4 additions and 3 deletions

View File

@ -20,8 +20,8 @@ type reply struct {
t time.Time
}
// A Client is uses when initiating a query to a nameserver. A nil
// Client is usable.
// A Client defines parameter for a DNS client. A nil
// Client is usable for sending queries.
type Client struct {
Net string // if "tcp" a TCP query will be initiated, otherwise an UDP one (default is "", is UDP)
Attempts int // number of attempts, if not set defaults to 1

View File

@ -71,6 +71,7 @@ const (
TypeMAILB uint16 = 253
TypeMAILA uint16 = 254
TypeANY uint16 = 255
TypeURI uint16 = 256
TypeTA uint16 = 32768
TypeDLV uint16 = 32769

View File

@ -118,7 +118,7 @@ func (z *Zone) Insert(r RR) error {
return nil
}
// Remove removes the RR r from the zone. If there RR can not be found,
// Remove removes the RR r from the zone. If the RR can not be found,
// this is a no-op.
func (z *Zone) Remove(r RR) error {
key := toRadixName(r.Header().Name)