From b88efc7e7ac15f9e0b5d8d9c82f870294f6a3839 Mon Sep 17 00:00:00 2001 From: Mikio Hara Date: Tue, 6 Jun 2017 11:12:34 +0900 Subject: [PATCH] net: update documentation on IP.IsUnspecified Fixes #19344. Change-Id: Ic6fc7485cb50bfae99fda69d0cd9c4ae434af4c3 Reviewed-on: https://go-review.googlesource.com/44910 Reviewed-by: Ian Lance Taylor --- src/net/ip.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) } -- 2.48.1