Skip to content

Commit 5ae2855

Browse files
authored
io: fix docs referring to clear_{read,write}_ready (#3957)
1 parent 2520048 commit 5ae2855

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tokio/src/io/poll_evented.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ cfg_io_driver! {
4040
/// [`poll_read_ready`] again will also indicate read readiness.
4141
///
4242
/// When the operation is attempted and is unable to succeed due to the I/O
43-
/// resource not being ready, the caller must call `clear_read_ready` or
44-
/// `clear_write_ready`. This clears the readiness state until a new
45-
/// readiness event is received.
43+
/// resource not being ready, the caller must call `clear_readiness`.
44+
/// This clears the readiness state until a new readiness event is received.
4645
///
4746
/// This allows the caller to implement additional functions. For example,
4847
/// [`TcpListener`] implements poll_accept by using [`poll_read_ready`] and

0 commit comments

Comments
 (0)