Typo in doc

This commit is contained in:
Yuriy Glukhov 2016-09-24 12:47:00 +03:00 • committed by GitHub
commit cb1231bf73

View file

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