From c6cc9f6e9c049da2a0f148426d32dd7bfab0d2cd Mon Sep 17 00:00:00 2001 From: Pier Fumagalli Date: Tue, 28 May 2024 20:08:49 +0200 Subject: [PATCH] Fix for [#203](https://github.com/smol-rs/polling/issues/203) --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 018f2e6..da77a01 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -410,7 +410,7 @@ impl Event { /// In `epoll`, a TCP connection failure is indicated by `EPOLLERR` + `EPOLLHUP`, though just `EPOLLERR` is enough to indicate a connection failure. /// EPOLLHUP may happen when we haven't event called `connect` on the socket, but it is still a valid event to check for. /// - /// Returns `Some(true)` if the connection has failed, `Some(false)` if there is an error, + /// Returns `Some(true)` if the connection has failed, `Some(false)` if there is no error, /// or `None` if the platform does not support detecting this condition. #[inline] pub fn is_err(&self) -> Option {