Merge pull request #152 from montekki/fs-fix-buf-read-docs

fixes docs for io::buf_read::read_until
This commit is contained in:
Florian Gilcher 2019-09-06 17:20:43 +02:00 committed by GitHub
commit 481002ee71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,7 @@ pub trait BufRead {
///
/// 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?;
/// #
/// # Ok(()) }) }