forked from mirror/async-std
fixes docs for io::buf_read::read_until
This commit is contained in:
parent
bac74c2d7f
commit
a2c2413bc5
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ pub trait BufRead {
|
||||||
///
|
///
|
||||||
/// let mut file = BufReader::new(File::open("a.txt").await?);
|
/// let mut file = BufReader::new(File::open("a.txt").await?);
|
||||||
///
|
///
|
||||||
/// let mut buf = vec![0; 1024];
|
/// let mut buf = Vec::with_capacity(1024);
|
||||||
/// let n = file.read_until(b'\n', &mut buf).await?;
|
/// let n = file.read_until(b'\n', &mut buf).await?;
|
||||||
/// #
|
/// #
|
||||||
/// # Ok(()) }) }
|
/// # Ok(()) }) }
|
||||||
|
|
Loading…
Reference in a new issue