From 1fb9fec7fa2e53c1ffd0f3b886f5db5a62de8c54 Mon Sep 17 00:00:00 2001 From: yuyi Date: Tue, 15 Oct 2024 18:00:09 +0800 Subject: [PATCH] examples: change var name '@type' to 'type' in net_resolve.v (#22526) --- examples/net_resolve.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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}') } } }