Commit ee4a2f7e authored by gukq's avatar gukq

Just repair a commentate mistake.

The commentate of function SockaddrToIPAndZone is same with
IPAndZoneToSockaddr. Repaired.
Signed-off-by: default avatargukq <gukaiqiang@gmail.com>
parent 3c898fbf
......@@ -196,7 +196,7 @@ func UnixAddrToSockaddr(addr *net.UnixAddr) (Sockaddr, int) {
return &SockaddrUnix{Name: addr.Name}, t
}
// IPAndZoneToSockaddr converts a net.IP (with optional IPv6 Zone) to a Sockaddr
// SockaddrToIPAndZone converts a Sockaddr to a net.IP (with optional IPv6 Zone)
// Returns nil if conversion fails.
func SockaddrToIPAndZone(sa Sockaddr) (net.IP, string) {
switch sa := sa.(type) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment