diff options
Diffstat (limited to 'tests/stdlib/tchannels_simple.nim')
-rw-r--r-- | tests/stdlib/tchannels_simple.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/stdlib/tchannels_simple.nim b/tests/stdlib/tchannels_simple.nim index dc4857c3e..56e5fb8f1 100644 --- a/tests/stdlib/tchannels_simple.nim +++ b/tests/stdlib/tchannels_simple.nim @@ -24,8 +24,7 @@ var worker1: Thread[void] createThread(worker1, firstWorker) # Block until the message arrives, then print it out. -var dest = "" -chan.recv(dest) +let dest = chan.recv() doAssert dest == "Hello World!" # Wait for the thread to exit before moving on to the next example. |