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, {