Skip to content

Commit 75febc6

Browse files
Rollup merge of #112008 - intruder-kat:master, r=Nilstrieb
Fix incorrect documented default bufsize in bufreader/writer
2 parents 3aa4561 + 5488a64 commit 75febc6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/std/src/io/buffered/bufreader.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub struct BufReader<R: ?Sized> {
5353
}
5454

5555
impl<R: Read> BufReader<R> {
56-
/// Creates a new `BufReader<R>` with a default buffer capacity. The default is currently 8 KB,
56+
/// Creates a new `BufReader<R>` with a default buffer capacity. The default is currently 8 KiB,
5757
/// but may change in the future.
5858
///
5959
/// # Examples

library/std/src/io/buffered/bufwriter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub struct BufWriter<W: ?Sized + Write> {
8181
}
8282

8383
impl<W: Write> BufWriter<W> {
84-
/// Creates a new `BufWriter<W>` with a default buffer capacity. The default is currently 8 KB,
84+
/// Creates a new `BufWriter<W>` with a default buffer capacity. The default is currently 8 KiB,
8585
/// but may change in the future.
8686
///
8787
/// # Examples

0 commit comments

Comments
 (0)