about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKathryn R <katy_x90@protonmail.com>2023-05-26 13:39:10 -0700
committerKathryn R <katy_x90@protonmail.com>2023-05-26 13:39:10 -0700
commit5488a64654d34530ecc3c512c8b87361faea137f (patch)
tree791f07ed59ca345c255849ac631ea79449535c5f
parent917b0b6c70f078cb08bbb0080c9379e4487353c3 (diff)
downloadrust-5488a64654d34530ecc3c512c8b87361faea137f.tar.gz
rust-5488a64654d34530ecc3c512c8b87361faea137f.zip
Fix incorrect documented default bufsize in bufreader/writer
-rw-r--r--library/std/src/io/buffered/bufreader.rs2
-rw-r--r--library/std/src/io/buffered/bufwriter.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/io/buffered/bufreader.rs b/library/std/src/io/buffered/bufreader.rs
index 4f339a18a48..0cc63dcb47d 100644
--- a/library/std/src/io/buffered/bufreader.rs
+++ b/library/std/src/io/buffered/bufreader.rs
@@ -53,7 +53,7 @@ pub struct BufReader<R> {
 }
 
 impl<R: Read> BufReader<R> {
-    /// Creates a new `BufReader<R>` with a default buffer capacity. The default is currently 8 KB,
+    /// Creates a new `BufReader<R>` with a default buffer capacity. The default is currently 8 KiB,
     /// but may change in the future.
     ///
     /// # Examples
diff --git a/library/std/src/io/buffered/bufwriter.rs b/library/std/src/io/buffered/bufwriter.rs
index 14c455d4fa3..aac52ec3540 100644
--- a/library/std/src/io/buffered/bufwriter.rs
+++ b/library/std/src/io/buffered/bufwriter.rs
@@ -81,7 +81,7 @@ pub struct BufWriter<W: Write> {
 }
 
 impl<W: Write> BufWriter<W> {
-    /// Creates a new `BufWriter<W>` with a default buffer capacity. The default is currently 8 KB,
+    /// Creates a new `BufWriter<W>` with a default buffer capacity. The default is currently 8 KiB,
     /// but may change in the future.
     ///
     /// # Examples