From: Mikio Hara Date: Tue, 6 Jun 2017 02:12:34 +0000 (+0900) Subject: net: update documentation on IP.IsUnspecified X-Git-Tag: go1.9beta2~20 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b88efc7e7ac15f9e0b5d8d9c82f870294f6a3839;p=gostls13.git net: update documentation on IP.IsUnspecified Fixes #19344. Change-Id: Ic6fc7485cb50bfae99fda69d0cd9c4ae434af4c3 Reviewed-on: https://go-review.googlesource.com/44910 Reviewed-by: Ian Lance Taylor --- diff --git a/src/net/ip.go b/src/net/ip.go index 668818cc4f..6b7ba4c23e 100644 --- a/src/net/ip.go +++ b/src/net/ip.go @@ -108,7 +108,8 @@ var ( IPv6linklocalallrouters = IP{0xff, 0x02, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x02} ) -// IsUnspecified reports whether ip is an unspecified address. +// IsUnspecified reports whether ip is an unspecified address, either +// the IPv4 address "0.0.0.0" or the IPv6 address "::". func (ip IP) IsUnspecified() bool { return ip.Equal(IPv4zero) || ip.Equal(IPv6unspecified) }