Skip to content

Commit

Permalink
Rollup merge of #123086 - ding-young:fix-ref-to-BufWriter, r=the8472
Browse files Browse the repository at this point in the history
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
  • Loading branch information
matthiaskrgr authored Mar 26, 2024
2 parents 9ea8f23 + a241ffc commit a4bf722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a4bf722

Please sign in to comment.