State default capacity for BufReader/BufWriter

This commit is contained in:
Jonathan Behrens 2018-07-26 00:42:59 +01:00
parent fefe81605d
commit abb704ec78
1 changed files with 4 additions and 2 deletions

View File

@ -61,7 +61,8 @@ pub struct BufReader<R> {
}
impl<R: Read> BufReader<R> {
/// Creates a new `BufReader` with a default buffer capacity.
/// Creates a new `BufReader` with a default buffer capacity. The default is currently 8 KB,
/// but may change in the future.
///
/// # Examples
///
@ -454,7 +455,8 @@ pub struct BufWriter<W: Write> {
pub struct IntoInnerError<W>(W, Error);
impl<W: Write> BufWriter<W> {
/// Creates a new `BufWriter` with a default buffer capacity.
/// Creates a new `BufWriter` with a default buffer capacity. The default is currently 8 KB,
/// but may change in the future.
///
/// # Examples
///