Skip to content

Commit f6f8764

Browse files
authored
Rollup merge of #78394 - rubik:master, r=m-ou-se
fix(docs): typo in BufWriter documentation This PR fixes a small typo in the BufWriter documentation. The current documentation looks like this: ![2020-10-26-111501_438x83_scrot](https://user-images.githubusercontent.com/238549/97160357-83d3a000-177c-11eb-8a35-3cdd3a7d89de.png) The `<u8>` at the end is mangled by Markdown. This PR makes the `BufWriter` documentation like the `BufReader` one: https://github.com/rust-lang/rust/blob/master/library/std/src/io/buffered/bufreader.rs#L16 I'm tagging Steve as per the Rustc dev guide. r? @steveklabnik
2 parents 98e2a95 + a4ba179 commit f6f8764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use crate::io::{
1515
/// *repeated* write calls to the same file or network socket. It does not
1616
/// help when writing very large amounts at once, or writing just one or a few
1717
/// times. It also provides no advantage when writing to a destination that is
18-
/// in memory, like a [`Vec`]<u8>`.
18+
/// in memory, like a [`Vec`]`<u8>`.
1919
///
2020
/// It is critical to call [`flush`] before `BufWriter<W>` is dropped. Though
2121
/// dropping will attempt to flush the contents of the buffer, any errors

0 commit comments

Comments
 (0)