From b0033eb463803d5b97de2e3f6d50f5682b24213b Mon Sep 17 00:00:00 2001 From: oberien Date: Tue, 4 Oct 2016 13:56:31 +0200 Subject: [PATCH] doc(read): Add number of bytes read to doc --- src/io/read.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/io/read.rs b/src/io/read.rs index 6798280b7..51bf9667f 100644 --- a/src/io/read.rs +++ b/src/io/read.rs @@ -13,8 +13,8 @@ enum State { /// Tries to read some bytes directly into the given `buf` in asynchronous /// manner, returning a future type. /// -/// The returned future will resolve to both the I/O stream as well as the -/// buffer once the read operation is completed. +/// The returned future will resolve to both the I/O stream and the buffer +/// as well as the number of bytes read once the read operation is completed. pub fn read(rd: R, buf: T) -> Read where R: ::std::io::Read, T: AsMut<[u8]>