Skip to content

Commit 417922c

Browse files
committed
example also needs a change, not sure if acceptable
1 parent 14fee3b commit 417922c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/helloworld.nim

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ proc new(T: typedesc[TestProto]): T =
2020
# We must close the connections ourselves when we're done with it
2121
await conn.close()
2222

23-
return T(codecs: @[TestCodec], handler: handle)
23+
return T.new(codecs = @[TestCodec], handler = handle)
2424

2525
##
2626
# Helper to create a switch/node

0 commit comments

Comments
 (0)