mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
Fix the doc of read_to_end method (#482)
This commit is contained in:
parent
c85bde3170
commit
ad4693a18f
@ -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,
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user