1
0
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:
yuyi 2022-01-03 14:45:26 +08:00 committed by GitHub
parent 1ad4fbd841
commit d5b111ec99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}