about summary refs log tree commit diff
path: root/src/libstd/io
diff options
context:
space:
mode:
authorBryan Burgers <bryan@burgers.io>2019-11-08 10:14:02 -0600
committerBryan Burgers <bryan@burgers.io>2019-11-08 10:18:58 -0600
commit413ab57c0210ecbe92298c53ec4e1e39f97e4e4c (patch)
treec666b18db32727d9d8c0b269490168f176b860e9 /src/libstd/io
parent76ade3e8ac42cd7a7b7c3c5ef54818ab68e3ebdc (diff)
downloadrust-413ab57c0210ecbe92298c53ec4e1e39f97e4e4c.tar.gz
rust-413ab57c0210ecbe92298c53ec4e1e39f97e4e4c.zip
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/io')
-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.
 ///