about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2019-11-13 22:09:17 +0900
committerGitHub <noreply@github.com>2019-11-13 22:09:17 +0900
commitfac098291eea5a993542141e681ed9be0a4513d0 (patch)
tree89452b764a4d3e7766e71da922558b4a5d38aa6c /src/libstd
parentbe3fcf48323714d87ae675a9017a7725460415b2 (diff)
parent413ab57c0210ecbe92298c53ec4e1e39f97e4e4c (diff)
downloadrust-fac098291eea5a993542141e681ed9be0a4513d0.tar.gz
rust-fac098291eea5a993542141e681ed9be0a4513d0.zip
Rollup merge of #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.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/io/buffered.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/io/buffered.rs b/src/libstd/io/buffered.rs
index ad567c97c2c..557da174d89 100644
--- a/src/libstd/io/buffered.rs
+++ b/src/libstd/io/buffered.rs
@@ -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.
 ///