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
This commit is contained in:
flywind
2021-03-19 21:44:13 +08:00
committed by GitHub
parent 83e002a318
commit 60fc7e986b

View File

@@ -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))