mirror of
https://github.com/vlang/v.git
synced 2025-08-03 17:57:59 -04:00
examples: change var name '@type' to 'type' in net_resolve.v (#22526)
This commit is contained in:
parent
49513afd51
commit
1fb9fec7fa
@ -8,17 +8,17 @@ for addr in [
|
||||
] {
|
||||
println('${addr}')
|
||||
|
||||
for @type in [net.SocketType.tcp, .udp] {
|
||||
for type in [net.SocketType.tcp, .udp] {
|
||||
family := net.AddrFamily.unspec
|
||||
|
||||
addrs := net.resolve_addrs(addr, family, @type) or {
|
||||
addrs := net.resolve_addrs(addr, family, type) or {
|
||||
println('> None')
|
||||
continue
|
||||
}
|
||||
|
||||
for a in addrs {
|
||||
f := a.family()
|
||||
println('> ${a} ${f} ${@type}')
|
||||
println('> ${a} ${f} ${type}')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user