about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-03-26 17:06:42 +0100
committerGitHub <noreply@github.com>2024-03-26 17:06:42 +0100
commita4bf7224cba6ec21b0737b07ce29162f88740417 (patch)
tree92846321005f80dbc6031d96dda97a16e9544cfe
parent9ea8f23504ce0b75d10c23df598b1d62784fd0b4 (diff)
parenta241ffc6b6f89ca9691b39662624dd3b7c08a703 (diff)
downloadrust-a4bf7224cba6ec21b0737b07ce29162f88740417.tar.gz
rust-a4bf7224cba6ec21b0737b07ce29162f88740417.zip
Rollup merge of #123086 - ding-young:fix-ref-to-BufWriter, r=the8472
Fix doc link to BufWriter in std::fs::File documentation

It seems that doc link to `BufWriter` in `std::fs::File` doc leads to `BufReader`, not `BufWriter`.
See https://doc.rust-lang.org/std/fs/struct.File.html
-rw-r--r--library/std/src/fs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs
index 5d0de2d06a0..8b3a9e82aad 100644
--- a/library/std/src/fs.rs
+++ b/library/std/src/fs.rs
@@ -97,7 +97,7 @@ use crate::time::SystemTime;
 /// have been opened for asynchronous I/O (e.g. by using `FILE_FLAG_OVERLAPPED`).
 ///
 /// [`BufReader`]: io::BufReader
-/// [`BufWriter`]: io::BufReader
+/// [`BufWriter`]: io::BufWriter
 /// [`sync_all`]: File::sync_all
 /// [`write`]: File::write
 /// [`read`]: File::read