1
0
mirror of https://github.com/golang/go synced 2024-11-25 08:47:56 -07:00

net: fix comment

RemoteAddr returns not only UDPAddr but IPAddr.

R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/6401054
This commit is contained in:
Mikio Hara 2012-07-24 21:57:18 +09:00
parent ce274339a1
commit c1f2ec384f

View File

@ -46,7 +46,7 @@ func (c *conn) LocalAddr() Addr {
return c.fd.laddr
}
// RemoteAddr returns the remote network address, a *UDPAddr.
// RemoteAddr returns the remote network address.
func (c *conn) RemoteAddr() Addr {
if !c.ok() {
return nil