mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-22 00:00:11 +02:00
Fix the doc of read_to_end method (#482)
This commit is contained in:
@@ -29,9 +29,8 @@ enum State<A> {
|
||||
/// 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: A, buf: Vec<u8>) -> ReadToEnd<A>
|
||||
where A: AsyncRead,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user