about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorTim Hutt <timh@graphcore.ai>2019-10-16 09:03:52 +0100
committerTim Hutt <timh@graphcore.ai>2019-10-16 09:03:52 +0100
commitc8150cb1594af7f3c2fe4b3968809637ca274260 (patch)
tree2e152907c324f444ccdadd5cd9bf1e59996a926f /src/libstd
parent6cefcb0b54a52c5507362d3ae33bc11843580ae1 (diff)
Fix read/write links hopefully!
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/fs.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstd/fs.rs b/src/libstd/fs.rs
index ce1680fde22..1c7efd2f532 100644
--- a/src/libstd/fs.rs
+++ b/src/libstd/fs.rs
@@ -29,7 +29,7 @@ use crate::time::SystemTime;
 ///
 /// # Examples
 ///
-/// Creates a new file and write bytes to it (you can also use [`std::fs::write`]):
+/// Creates a new file and write bytes to it (you can also use [`write`]):
 ///
 /// ```no_run
 /// use std::fs::File;
@@ -42,7 +42,7 @@ use crate::time::SystemTime;
 /// }
 /// ```
 ///
-/// Read the contents of a file into a [`String`] (you can also use [`std::fs::read`]):
+/// Read the contents of a file into a [`String`] (you can also use [`read`]):
 ///
 /// ```no_run
 /// use std::fs::File;
@@ -89,6 +89,8 @@ use crate::time::SystemTime;
 /// [`Write`]: ../io/trait.Write.html
 /// [`BufReader<R>`]: ../io/struct.BufReader.html
 /// [`sync_all`]: struct.File.html#method.sync_all
+/// [`read`]: fn.read.html
+/// [`write`]: fn.write.html
 #[stable(feature = "rust1", since = "1.0.0")]
 pub struct File {
     inner: fs_imp::File,