diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2017-08-10 22:50:29 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2017-08-10 22:50:29 +0200 |
| commit | 645117fd96831ddcda35e4d6d2bdba9935c58e53 (patch) | |
| tree | c827e070df9c464487de5c81fa5575f7a08b693f /src/libstd/fs.rs | |
| parent | b6179602bea71607a9ea63197eca423fcce5f7b0 (diff) | |
| download | rust-645117fd96831ddcda35e4d6d2bdba9935c58e53.tar.gz rust-645117fd96831ddcda35e4d6d2bdba9935c58e53.zip | |
Add missing links on File struct docs
Diffstat (limited to 'src/libstd/fs.rs')
| -rw-r--r-- | src/libstd/fs.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstd/fs.rs b/src/libstd/fs.rs index 38d3312b4e7..adbfcc366af 100644 --- a/src/libstd/fs.rs +++ b/src/libstd/fs.rs @@ -28,7 +28,7 @@ use time::SystemTime; /// 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 @@ use time::SystemTime; /// # } /// ``` /// -/// 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 @@ use time::SystemTime; /// # } /// ``` /// +/// [`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")] |
