Fix nimdoc generation for lib/pure/selectors.nim

This commit is contained in:
Sergey Avseyev 2015-07-09 17:40:29 +03:00
commit 7f03ad416e
No known key found for this signature in database
GPG key ID: B8C52427872CF7D3

View file

@ -295,7 +295,8 @@ proc contains*(s: Selector, key: SelectorKey): bool =
## 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,
## 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,
TReadyInfo: ReadyInfo, PSelector: Selector].}