Skip to content

Commit

Permalink
Rollup merge of rust-lang#52718 - fintelia:patch-2, r=cramertj
Browse files Browse the repository at this point in the history
State default capacity for BufReader/BufWriter

Addresses rust-lang#52513
  • Loading branch information
Mark-Simulacrum authored Jul 26, 2018
2 parents cc7a826 + abb704e commit 091a10e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/libstd/io/buffered.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down Expand Up @@ -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
///
Expand Down

0 comments on commit 091a10e

Please sign in to comment.