examples: change var name '@type' to 'type' in net_resolve.v (#22526)

This commit is contained in:
yuyi 2024-10-15 18:00:09 +08:00 committed by GitHub
parent 49513afd51
commit 1fb9fec7fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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