Skip to content

Commit

Permalink
Rollup merge of rust-lang#66227 - bryanburgers:bufwriter-docs-fix-flu…
Browse files Browse the repository at this point in the history
…sh-link, r=Dylan-DPC

docs: Fix link to BufWriter::flush

One of the links in the docs was being rendered as a literal
open-bracket followed by a single quote, instead of being transformed
into a link. Fix it to match the link earlier in the same paragraph.
  • Loading branch information
JohnTitor committed Nov 13, 2019
2 parents be3fcf4 + 413ab57 commit fac0982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/io/buffered.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ impl<R: Seek> Seek for BufReader<R> {
///
/// It is critical to call [`flush`] before `BufWriter<W>` is dropped. Though
/// dropping will attempt to flush the the contents of the buffer, any errors
/// that happen in the process of dropping will be ignored. Calling ['flush']
/// that happen in the process of dropping will be ignored. Calling [`flush`]
/// ensures that the buffer is empty and thus dropping will not even attempt
/// file operations.
///
Expand Down

0 comments on commit fac0982

Please sign in to comment.