From b2647bf7d884a03fbe78e9c61a1c8066edd5f7c5 Mon Sep 17 00:00:00 2001 From: Jeb Rosen Date: Sun, 14 Jun 2020 11:12:38 -0700 Subject: [PATCH] docs: Remove inapplicable paragraph from 'AsyncReadExt::read_ext()'. This paragraph from `std::io::Read::read_ext()` applies to *implementors* of `Read`. Since `AsyncReadExt` can't and shouldn't be implemented outside of this crate, this documentation is unnecessary. --- tokio/src/io/util/async_read_ext.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tokio/src/io/util/async_read_ext.rs b/tokio/src/io/util/async_read_ext.rs index fcd2cce4f7e..50f600c818b 100644 --- a/tokio/src/io/util/async_read_ext.rs +++ b/tokio/src/io/util/async_read_ext.rs @@ -238,12 +238,6 @@ cfg_io_util! { /// This function reads as many bytes as necessary to completely fill /// the specified buffer `buf`. /// - /// No guarantees are provided about the contents of `buf` when this - /// function is called, implementations cannot rely on any property of - /// the contents of `buf` being `true`. It is recommended that - /// implementations only write data to `buf` instead of reading its - /// contents. - /// /// # Errors /// /// If the operation encounters an "end of file" before completely