diff --git a/examples/net_resolve.v b/examples/net_resolve.v index cc57246846ddab..a6b738c33117e6 100644 --- a/examples/net_resolve.v +++ b/examples/net_resolve.v @@ -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}') } } }