diff --git a/lib/pure/selectors.nim b/lib/pure/selectors.nim index aa8ad39d15..bfc393a964 100644 --- a/lib/pure/selectors.nim +++ b/lib/pure/selectors.nim @@ -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].}