Skip to content

Commit 86400a1

Browse files
authored
io: fix typos in the docs of AsyncFd readiness guards (#7583)
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
1 parent c9b4e4c commit 86400a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tokio/src/io/async_fd.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ impl<'a, Inner: AsRawFd> AsyncFdReadyGuard<'a, Inner> {
988988
///
989989
/// This method only clears readiness events that happened before the creation of this guard.
990990
/// In other words, if the IO resource becomes ready between the creation of the guard and
991-
/// this call to `clear_ready`, then the readiness is not actually cleared.
991+
/// this call to `clear_ready_matching`, then the readiness is not actually cleared.
992992
///
993993
/// # Examples
994994
///
@@ -1212,7 +1212,7 @@ impl<'a, Inner: AsRawFd> AsyncFdReadyMutGuard<'a, Inner> {
12121212
///
12131213
/// This method only clears readiness events that happened before the creation of this guard.
12141214
/// In other words, if the IO resource becomes ready between the creation of the guard and
1215-
/// this call to `clear_ready`, then the readiness is not actually cleared.
1215+
/// this call to `clear_ready_matching`, then the readiness is not actually cleared.
12161216
///
12171217
/// # Examples
12181218
///

0 commit comments

Comments
 (0)