Skip to content

Commit fac0982

Browse files
authored
Rollup merge of rust-lang#66227 - bryanburgers:bufwriter-docs-fix-flush-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.
2 parents be3fcf4 + 413ab57 commit fac0982

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/io/buffered.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ impl<R: Seek> Seek for BufReader<R> {
369369
///
370370
/// It is critical to call [`flush`] before `BufWriter<W>` is dropped. Though
371371
/// dropping will attempt to flush the the contents of the buffer, any errors
372-
/// that happen in the process of dropping will be ignored. Calling ['flush']
372+
/// that happen in the process of dropping will be ignored. Calling [`flush`]
373373
/// ensures that the buffer is empty and thus dropping will not even attempt
374374
/// file operations.
375375
///

0 commit comments

Comments
 (0)