aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhitzhangjie <hit.zhangjie@gmail.com>2021-08-07 04:18:37 +0000
committerDmitri Shuralyov <dmitshur@golang.org>2021-08-13 21:53:07 +0000
commit7eaabae84d8b69216356b84ebc7c86917100f99a (patch)
treeec877fdc47fb410e46c16ebff7ddd20cf09edc7d
parent58490972c0d5a9dc59450474d38533faf69e4aaf (diff)
downloadgo-7eaabae84d8b69216356b84ebc7c86917100f99a.tar.gz
go-7eaabae84d8b69216356b84ebc7c86917100f99a.zip
net: update IP.String doc to reflect RFC 5952 conformance
Fixes #44485 Change-Id: I1b1bf14245ef738342ec881ac4c99adbfc9c5b7d GitHub-Last-Rev: ae0242c6d61fc0e80c58113a70db74829f6aa12c GitHub-Pull-Request: golang/go#47394 Reviewed-on: https://go-review.googlesource.com/c/go/+/337409 Trust: Dmitri Shuralyov <dmitshur@golang.org> Trust: Damien Neil <dneil@google.com> Reviewed-by: Damien Neil <dneil@google.com>
-rw-r--r--src/net/ip.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/ip.go b/src/net/ip.go
index 38e1aa2247..b016bef144 100644
--- a/src/net/ip.go
+++ b/src/net/ip.go
@@ -308,7 +308,7 @@ func ubtoa(dst []byte, start int, v byte) int {
// It returns one of 4 forms:
// - "<nil>", if ip has length 0
// - dotted decimal ("192.0.2.1"), if ip is an IPv4 or IP4-mapped IPv6 address
-// - IPv6 ("2001:db8::1"), if ip is a valid IPv6 address
+// - IPv6 conforming to RFC 5952 ("2001:db8::1"), if ip is a valid IPv6 address
// - the hexadecimal form of ip, without punctuation, if no other cases apply
func (ip IP) String() string {
p := ip