From 0cea8b4410c359df829c381ad50f0f21c99535e0 Mon Sep 17 00:00:00 2001 From: Antonis Geralis Date: Fri, 16 Aug 2024 00:27:41 +0300 Subject: [PATCH] corrected doc comments --- threading/channels.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/threading/channels.nim b/threading/channels.nim index f720410..d42dae0 100644 --- a/threading/channels.nim +++ b/threading/channels.nim @@ -291,7 +291,7 @@ proc `=copy`*[T](dest: var Chan[T], src: Chan[T]) = proc trySend*[T](c: Chan[T], src: sink Isolated[T]): bool {.inline.} = ## Tries to send the message `src` to the channel `c`. ## - ## The memory of `src` is copied. + ## The memory of `src` be moved if possible. ## Doesn't block waiting for space in the channel to become available. ## Instead returns after an attempt to send a message was made. ## @@ -316,7 +316,7 @@ template trySend*[T](c: Chan[T], src: T): bool = proc trySendMut*[T](c: Chan[T], src: var Isolated[T]): bool {.inline.} = ## Tries to send the message `src` to the channel `c`. ## - ## The memory of `src` is moved, not copied. + ## The memory of `src` is moved directly. ## Doesn't block waiting for space in the channel to become available. ## Instead returns after an attempt to send a message was made. ##