Rollup merge of #112008 - intruder-kat:master, r=Nilstrieb

Fix incorrect documented default bufsize in bufreader/writer
This commit is contained in:
Michael Goulet 2023-07-06 20:11:38 -07:00 committed by GitHub
commit 75febc6ed6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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