Update the doc a little

This commit is contained in:
Miek Gieben 2013-10-18 09:14:31 +00:00
parent b050075299
commit 4b1cacf2d2
1 changed files with 2 additions and 2 deletions

View File

@ -58,10 +58,10 @@ func Exchange(m *Msg, a string) (r *Msg, err error) {
// c and waits for a reply. The connection c is not closed by ExchangeConn.
// This function is going away, but can easily be mimicked:
//
// co := new(dns.Conn)
// co.Conn = c // c is your net.Conn
// co := &dns.Conn{Conn: c} // c is your net.Conn
// co.WriteMsg(m)
// in, _ := co.ReadMsg()
// co.Close()
//
func ExchangeConn(c net.Conn, m *Msg) (r *Msg, err error) {
println("dns: this function is deprecated")