summary refs log tree commit diff stats
path: root/lib/std
diff options
context:
space:
mode:
authorflywind <xzsflywind@gmail.com>2021-03-19 21:44:13 +0800
committerGitHub <noreply@github.com>2021-03-19 21:44:13 +0800
commit60fc7e986becb71e74ad336cc19163ceffb2b43e (patch)
tree649192b54f1740785439464c52ed9f835b05552e /lib/std
parent83e002a318dee2370b266446d5ec26ad97a65f57 (diff)
downloadNim-60fc7e986becb71e74ad336cc19163ceffb2b43e.tar.gz
fix a typo (#17417)
* Revert "make system random work in VM"

* fix #17380

* attempt to fix bug

* fix

* better

* fix

* a bit

* fix the leaks

* revert

* fix

* better

* follow up #17391

* fix

* Update tchannels.nim

* Update tests/stdlib/tchannels.nim

* Update tchannels.nim

* fix a typo
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/channels.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/channels.nim b/lib/std/channels.nim
index 69f6a6ffb..3bbc8a6b6 100644
--- a/lib/std/channels.nim
+++ b/lib/std/channels.nim
@@ -473,7 +473,7 @@ func send*[T](c: Channel[T], src: sink Isolated[T]) {.inline.} =
   discard sendMpmc(c.d, data.addr, sizeof(T), false)
   wasMoved(data)
 
-template send*[T](c: var Channel[T]; src: T) =
+template send*[T](c: Channel[T]; src: T) =
   ## Helper templates for `send`.
   send(c, isolate(src))