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,6 +295,7 @@ 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.
when not defined(nimdoc):
return key.fd in s and s.fds[key.fd] == key return key.fd in s and s.fds[key.fd] == key
{.deprecated: [TEvent: Event, PSelectorKey: SelectorKey, {.deprecated: [TEvent: Event, PSelectorKey: SelectorKey,