Skip to content

Commit 645117f

Browse files
Add missing links on File struct docs
1 parent b617960 commit 645117f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/libstd/fs.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use time::SystemTime;
2828
/// A reference to an open file on the filesystem.
2929
///
3030
/// An instance of a `File` can be read and/or written depending on what options
31-
/// it was opened with. Files also implement `Seek` to alter the logical cursor
31+
/// it was opened with. Files also implement [`Seek`] to alter the logical cursor
3232
/// that the file contains internally.
3333
///
3434
/// Files are automatically closed when they go out of scope.
@@ -48,7 +48,7 @@ use time::SystemTime;
4848
/// # }
4949
/// ```
5050
///
51-
/// Read the contents of a file into a `String`:
51+
/// Read the contents of a file into a [`String`]:
5252
///
5353
/// ```no_run
5454
/// use std::fs::File;
@@ -81,6 +81,8 @@ use time::SystemTime;
8181
/// # }
8282
/// ```
8383
///
84+
/// [`Seek`]: ../io/trait.Seek.html
85+
/// [`String`]: ../string/struct.String.html
8486
/// [`Read`]: ../io/trait.Read.html
8587
/// [`BufReader<R>`]: ../io/struct.BufReader.html
8688
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)