From 86400a1920c4caef28ae5178af0fcf1a34822b92 Mon Sep 17 00:00:00 2001 From: Martin Grigorov Date: Sat, 6 Sep 2025 10:58:41 +0300 Subject: [PATCH] io: fix typos in the docs of `AsyncFd` readiness guards (#7583) Signed-off-by: Martin Tzvetanov Grigorov --- tokio/src/io/async_fd.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tokio/src/io/async_fd.rs b/tokio/src/io/async_fd.rs index 8ecc6b952..285579e1a 100644 --- a/tokio/src/io/async_fd.rs +++ b/tokio/src/io/async_fd.rs @@ -988,7 +988,7 @@ impl<'a, Inner: AsRawFd> AsyncFdReadyGuard<'a, Inner> { /// /// This method only clears readiness events that happened before the creation of this guard. /// In other words, if the IO resource becomes ready between the creation of the guard and - /// this call to `clear_ready`, then the readiness is not actually cleared. + /// this call to `clear_ready_matching`, then the readiness is not actually cleared. /// /// # Examples /// @@ -1212,7 +1212,7 @@ impl<'a, Inner: AsRawFd> AsyncFdReadyMutGuard<'a, Inner> { /// /// This method only clears readiness events that happened before the creation of this guard. /// In other words, if the IO resource becomes ready between the creation of the guard and - /// this call to `clear_ready`, then the readiness is not actually cleared. + /// this call to `clear_ready_matching`, then the readiness is not actually cleared. /// /// # Examples ///