Skip to content

Commit

Permalink
examples: change var name '@type' to 'type' in net_resolve.v (vlang#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi98 authored Oct 15, 2024
1 parent 49513af commit 1fb9fec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/net_resolve.v
Original file line number Diff line number Diff line change
Expand Up @@ -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}')
}
}
}

0 comments on commit 1fb9fec

Please sign in to comment.