]> git.lizzy.rs Git - rust.git/commitdiff
Add missing links on File struct docs
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 10 Aug 2017 20:50:29 +0000 (22:50 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 10 Aug 2017 20:50:29 +0000 (22:50 +0200)
src/libstd/fs.rs

index 38d3312b4e7dd6a7569cdd5381de742edc8e538e..adbfcc366af9f84c2c13a5e11bb48b9850e480cd 100644 (file)
@@ -28,7 +28,7 @@
 /// A reference to an open file on the filesystem.
 ///
 /// An instance of a `File` can be read and/or written depending on what options
-/// it was opened with. Files also implement `Seek` to alter the logical cursor
+/// it was opened with. Files also implement [`Seek`] to alter the logical cursor
 /// that the file contains internally.
 ///
 /// Files are automatically closed when they go out of scope.
@@ -48,7 +48,7 @@
 /// # }
 /// ```
 ///
-/// Read the contents of a file into a `String`:
+/// Read the contents of a file into a [`String`]:
 ///
 /// ```no_run
 /// use std::fs::File;
@@ -81,6 +81,8 @@
 /// # }
 /// ```
 ///
+/// [`Seek`]: ../io/trait.Seek.html
+/// [`String`]: ../string/struct.String.html
 /// [`Read`]: ../io/trait.Read.html
 /// [`BufReader<R>`]: ../io/struct.BufReader.html
 #[stable(feature = "rust1", since = "1.0.0")]