Fix nimdoc generation for lib/pure/selectors.nim
This commit is contained in:
parent
e1dec3b7dd
commit
7f03ad416e
1 changed files with 2 additions and 1 deletions
|
|
@ -295,7 +295,8 @@ proc contains*(s: Selector, key: SelectorKey): bool =
|
||||||
## ensures that the keys are equal. File descriptors may not always be
|
## ensures that the keys are equal. File descriptors may not always be
|
||||||
## unique especially when an fd is closed and then a new one is opened,
|
## unique especially when an fd is closed and then a new one is opened,
|
||||||
## the new one may have the same value.
|
## the new one may have the same value.
|
||||||
return key.fd in s and s.fds[key.fd] == key
|
when not defined(nimdoc):
|
||||||
|
return key.fd in s and s.fds[key.fd] == key
|
||||||
|
|
||||||
{.deprecated: [TEvent: Event, PSelectorKey: SelectorKey,
|
{.deprecated: [TEvent: Event, PSelectorKey: SelectorKey,
|
||||||
TReadyInfo: ReadyInfo, PSelector: Selector].}
|
TReadyInfo: ReadyInfo, PSelector: Selector].}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue