mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
net: fix typo in new_ip() (#13017)
This commit is contained in:
parent
1ad4fbd841
commit
d5b111ec99
@ -24,7 +24,7 @@ fn new_ip6(port u16, addr [16]byte) Addr {
|
||||
}
|
||||
}
|
||||
|
||||
copy(a.addr.Ip6.addr[0..], addr[0..])
|
||||
copy(a.addr.Ip6.addr[..], addr[..])
|
||||
|
||||
return a
|
||||
}
|
||||
@ -39,7 +39,7 @@ fn new_ip(port u16, addr [4]byte) Addr {
|
||||
}
|
||||
}
|
||||
|
||||
copy(a.addr.Ip6.addr[0..], addr[0..])
|
||||
copy(a.addr.Ip.addr[..], addr[..])
|
||||
|
||||
return a
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user