diff --git a/tokio/src/io/util/async_buf_read_ext.rs b/tokio/src/io/util/async_buf_read_ext.rs index 7977a0e8cc7..233ac31c463 100644 --- a/tokio/src/io/util/async_buf_read_ext.rs +++ b/tokio/src/io/util/async_buf_read_ext.rs @@ -23,6 +23,8 @@ cfg_io_util! { /// /// If successful, this function will return the total number of bytes read. /// + /// If this function returns `Ok(0)`, the stream has reached EOF. + /// /// # Errors /// /// This function will ignore all instances of [`ErrorKind::Interrupted`] and