Skip to content

Commit abb704e

Browse files
committed
State default capacity for BufReader/BufWriter
1 parent fefe816 commit abb704e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/libstd/io/buffered.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ pub struct BufReader<R> {
6161
}
6262

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

456457
impl<W: Write> BufWriter<W> {
457-
/// Creates a new `BufWriter` with a default buffer capacity.
458+
/// Creates a new `BufWriter` with a default buffer capacity. The default is currently 8 KB,
459+
/// but may change in the future.
458460
///
459461
/// # Examples
460462
///

0 commit comments

Comments
 (0)