Typo in doc
This commit is contained in:
parent
aec88bb5d9
commit
cb1231bf73
1 changed files with 1 additions and 1 deletions
|
|
@ -242,7 +242,7 @@ proc recv*[TMsg](c: var Channel[TMsg]): TMsg =
|
||||||
|
|
||||||
proc tryRecv*[TMsg](c: var Channel[TMsg]): tuple[dataAvailable: bool,
|
proc tryRecv*[TMsg](c: var Channel[TMsg]): tuple[dataAvailable: bool,
|
||||||
msg: TMsg] =
|
msg: TMsg] =
|
||||||
## try to receives a message from the channel `c`, but this can fail
|
## Tries to receive a message from the channel `c`, but this can fail
|
||||||
## for all sort of reasons, including contention. If it fails,
|
## for all sort of reasons, including contention. If it fails,
|
||||||
## it returns ``(false, default(msg))`` otherwise it
|
## it returns ``(false, default(msg))`` otherwise it
|
||||||
## returns ``(true, msg)``.
|
## returns ``(true, msg)``.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue