mirror of
https://github.com/golang/go
synced 2024-11-20 02:54:39 -07:00
net: fix laddr typo in test code.
R=rsc CC=golang-dev https://golang.org/cl/4381050
This commit is contained in:
parent
0cc055e8f7
commit
420a17e371
@ -69,9 +69,12 @@ func TestICMP(t *testing.T) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
var laddr *IPAddr
|
var (
|
||||||
|
laddr *IPAddr
|
||||||
|
err os.Error
|
||||||
|
)
|
||||||
if *srchost != "" {
|
if *srchost != "" {
|
||||||
laddr, err := ResolveIPAddr(*srchost)
|
laddr, err = ResolveIPAddr(*srchost)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf(`net.ResolveIPAddr("%v") = %v, %v`, *srchost, laddr, err)
|
t.Fatalf(`net.ResolveIPAddr("%v") = %v, %v`, *srchost, laddr, err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user