From 0ab28627e2e7dabfe1f8450101b720d623c6c5e7 Mon Sep 17 00:00:00 2001 From: Jeb Rosen Date: Thu, 18 Jun 2020 12:36:06 -0700 Subject: [PATCH] docs: remove unneeded doc from AsyncReadExt::read_ext() (#2621) 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 fcd2cce4f..50f600c81 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