Skip to content

Commit

Permalink
Rollup merge of rust-lang#112008 - intruder-kat:master, r=Nilstrieb
Browse files Browse the repository at this point in the history
Fix incorrect documented default bufsize in bufreader/writer
  • Loading branch information
matthiaskrgr authored Jul 6, 2023
2 parents f88151c + 5488a64 commit 45861e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/std/src/io/buffered/bufreader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub struct BufReader<R: ?Sized> {
}

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
Expand Down
2 changes: 1 addition & 1 deletion library/std/src/io/buffered/bufwriter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub struct BufWriter<W: ?Sized + 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
Expand Down

0 comments on commit 45861e2

Please sign in to comment.