about summary refs log tree commit diff
path: root/src/libstd/io
diff options
context:
space:
mode:
authorJonathan Behrens <fintelia@gmail.com>2018-07-26 00:42:59 +0100
committerJonathan Behrens <fintelia@gmail.com>2018-07-26 00:49:35 +0100
commitabb704ec78bd69c0911c5f7711646d443da4c84d (patch)
treea256f15aaea0b3f29e163092721a3b642247694f /src/libstd/io
parentfefe81605d6111faa8dbb3635ab2c51d59de740a (diff)
downloadrust-abb704ec78bd69c0911c5f7711646d443da4c84d.tar.gz
rust-abb704ec78bd69c0911c5f7711646d443da4c84d.zip
State default capacity for BufReader/BufWriter
Diffstat (limited to 'src/libstd/io')
-rw-r--r--src/libstd/io/buffered.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstd/io/buffered.rs b/src/libstd/io/buffered.rs
index 189569683a9..2babf508fdc 100644
--- a/src/libstd/io/buffered.rs
+++ b/src/libstd/io/buffered.rs
@@ -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
     ///