]> Cypherpunks repositories - gostls13.git/commit
net: revise IP.String result for malformed IP address to add ? back
authorRuss Cox <rsc@golang.org>
Tue, 24 May 2016 00:40:52 +0000 (20:40 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 24 May 2016 13:54:31 +0000 (13:54 +0000)
commit7f9255c2120f784c334431661145ee89e75f64fe
tree1932770e46144bd8d3baef35b08ee7bdce5ed12f
parent8e724e7bbad07d530f547b6214c71ddfe26ba92a
net: revise IP.String result for malformed IP address to add ? back

In earlier versions of Go the result was simply "?".
A change in this cycle made the result echo back the hex bytes
of the address, which is certainly useful, but now the result is
not clearly indicating an error. Put the "?" back, at the beginning
of the hex string, to make the invalidity of the string clearer.

Change-Id: I3e0f0b6a005601cd98d982a62288551959185b40
Reviewed-on: https://go-review.googlesource.com/23376
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/ip.go
src/net/ip_test.go