summaryrefslogtreecommitdiff
path: root/src/lib/net/ip_test.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-12-19 17:11:54 -0800
committerRuss Cox <rsc@golang.org>2008-12-19 17:11:54 -0800
commit8a86068ba0396767334db1372aa2b9d64887e926 (patch)
treecb81af416ec881adddae83a041978d025019be1f /src/lib/net/ip_test.go
parent7a20922861215bc5d7c3cb6b4a648f58de84a026 (diff)
downloadgolang-8a86068ba0396767334db1372aa2b9d64887e926.tar.gz
[] and struct in interfaces.
other [] cleanup. convert() is gone. R=r DELTA=352 (144 added, 68 deleted, 140 changed) OCL=21660 CL=21662
Diffstat (limited to 'src/lib/net/ip_test.go')
-rw-r--r--src/lib/net/ip_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/net/ip_test.go b/src/lib/net/ip_test.go
index 7fd8539ac..131c84432 100644
--- a/src/lib/net/ip_test.go
+++ b/src/lib/net/ip_test.go
@@ -14,7 +14,7 @@ func IPv4(a, b, c, d byte) []byte {
}
func Equal(a []byte, b []byte) bool {
- if a == b {
+ if a == nil && b == nil {
return true
}
if a == nil || b == nil || len(a) != len(b) {