Skip to content

Commit 7c3562c

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 0395fc7 + 413ab57 commit 7c3562c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/io/buffered.rs

Lines changed: 1 addition & 1 deletion
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)