mirror of
https://github.com/golang/go
synced 2024-11-21 15:44:44 -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
|
||||
}
|
||||
|
||||
var laddr *IPAddr
|
||||
var (
|
||||
laddr *IPAddr
|
||||
err os.Error
|
||||
)
|
||||
if *srchost != "" {
|
||||
laddr, err := ResolveIPAddr(*srchost)
|
||||
laddr, err = ResolveIPAddr(*srchost)
|
||||
if err != nil {
|
||||
t.Fatalf(`net.ResolveIPAddr("%v") = %v, %v`, *srchost, laddr, err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user