about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorChris Gregory <czipperz@gmail.com>2019-04-02 22:26:11 -0400
committerChris Gregory <czipperz@gmail.com>2019-04-02 22:26:11 -0400
commit76e82d6f52431b4877bbdc6413480680d9956967 (patch)
tree82a975863b0a84c30c830fe419c167e810753633 /src/libstd
parentb6ebe1bd9e4f6692c390326bca0ef06c24255719 (diff)
Link to sync_all
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/fs.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/fs.rs b/src/libstd/fs.rs
index 99dd0d8eeeb..034564250c3 100644
--- a/src/libstd/fs.rs
+++ b/src/libstd/fs.rs
@@ -23,7 +23,7 @@ use crate::time::SystemTime;
 ///
 /// Files are automatically closed when they go out of scope.  Errors detected
 /// on closing are ignored by the implementation of `Drop`.  Use the method
-/// `sync_all` if these errors must be manually handled.
+/// [`sync_all`] if these errors must be manually handled.
 ///
 /// # Examples
 ///
@@ -86,6 +86,7 @@ use crate::time::SystemTime;
 /// [`Read`]: ../io/trait.Read.html
 /// [`Write`]: ../io/trait.Write.html
 /// [`BufReader<R>`]: ../io/struct.BufReader.html
+/// [`sync_all`]: struct.File.html#method.sync_all
 #[stable(feature = "rust1", since = "1.0.0")]
 pub struct File {
     inner: fs_imp::File,