From 26ed0948a4712e1c4cbcffd26015d16c08281d23 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Thu, 4 Dec 2025 20:22:48 +0800 Subject: [PATCH] fixes comments --- lib/system/channels_builtin.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/system/channels_builtin.nim b/lib/system/channels_builtin.nim index dc80b74cdc..1cc9443778 100644 --- a/lib/system/channels_builtin.nim +++ b/lib/system/channels_builtin.nim @@ -369,14 +369,14 @@ proc sendImpl(q: PRawChannel, typ: PNimType, msg: pointer, noBlock: bool): bool when defined(gcDestructors): proc send*[TMsg](c: var Channel[TMsg], msg: sink TMsg) {.inline.} = - ## Sends a message to a thread. `msg` is deeply copied. + ## Sends a message to a thread. discard sendImpl(cast[PRawChannel](addr c), cast[PNimType](getTypeInfo(msg)), unsafeAddr(msg), false) wasMoved(msg) proc trySend*[TMsg](c: var Channel[TMsg], msg: sink TMsg): bool {.inline.} = ## Tries to send a message to a thread. ## - ## `msg` is deeply copied. Doesn't block. + ## Doesn't block. ## ## Returns `false` if the message was not sent because number of pending items ## in the channel exceeded `maxItems`.