From 5ae2855eaf29fc78687c6d17b0be35f8b4934788 Mon Sep 17 00:00:00 2001 From: Blas Rodriguez Irizar Date: Tue, 20 Jul 2021 15:35:18 +0200 Subject: [PATCH] io: fix docs referring to clear_{read,write}_ready (#3957) --- tokio/src/io/poll_evented.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tokio/src/io/poll_evented.rs b/tokio/src/io/poll_evented.rs index a31e6db7bad..9872574807e 100644 --- a/tokio/src/io/poll_evented.rs +++ b/tokio/src/io/poll_evented.rs @@ -40,9 +40,8 @@ cfg_io_driver! { /// [`poll_read_ready`] again will also indicate read readiness. /// /// When the operation is attempted and is unable to succeed due to the I/O - /// resource not being ready, the caller must call `clear_read_ready` or - /// `clear_write_ready`. This clears the readiness state until a new - /// readiness event is received. + /// resource not being ready, the caller must call `clear_readiness`. + /// This clears the readiness state until a new readiness event is received. /// /// This allows the caller to implement additional functions. For example, /// [`TcpListener`] implements poll_accept by using [`poll_read_ready`] and