diff options
| author | Russ Cox <rsc@golang.org> | 2008-12-19 17:11:54 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2008-12-19 17:11:54 -0800 |
| commit | c3077f7606b8f45d010d5d87c7fa748ef5b88368 (patch) | |
| tree | cb81af416ec881adddae83a041978d025019be1f /src/lib/net | |
| parent | 33907d1346f13f0ce30a3b3fce73965df8248b74 (diff) | |
| download | go-c3077f7606b8f45d010d5d87c7fa748ef5b88368.tar.xz | |
[] 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')
| -rw-r--r-- | src/lib/net/ip_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/net/ip_test.go b/src/lib/net/ip_test.go index 7fd8539ac8..131c844326 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) { |
