From ad4693a18f1cb6f1d9788fc263f6db497b39682e Mon Sep 17 00:00:00 2001 From: kohensu Date: Tue, 24 Jul 2018 22:57:15 +0200 Subject: [PATCH] Fix the doc of read_to_end method (#482) --- tokio-io/src/io/read_to_end.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tokio-io/src/io/read_to_end.rs b/tokio-io/src/io/read_to_end.rs index 519f8a76d..e7869cc19 100644 --- a/tokio-io/src/io/read_to_end.rs +++ b/tokio-io/src/io/read_to_end.rs @@ -29,9 +29,8 @@ enum State { /// object `A` into the buffer provided. /// /// In the case of an error the buffer and the object will be discarded, with -/// the error yielded. In the case of success the object will be destroyed and -/// the buffer will be returned, with all data read from the stream appended to -/// the buffer. +/// the error yielded. In the case of success both the object and the buffer +/// will be returned, with all data read from the stream appended to the buffer. pub fn read_to_end(a: A, buf: Vec) -> ReadToEnd where A: AsyncRead, {