diff options
| author | Chris Gregory <czipperz@gmail.com> | 2019-04-03 23:21:10 -0400 |
|---|---|---|
| committer | Chris Gregory <czipperz@gmail.com> | 2019-04-03 23:21:10 -0400 |
| commit | a969d409874f91e197a1cd336a368f02d8a3ce47 (patch) | |
| tree | 95846cbb9699da2b923422fcad7a5f08d15b54ad /src | |
| parent | 76e82d6f52431b4877bbdc6413480680d9956967 (diff) | |
| download | rust-a969d409874f91e197a1cd336a368f02d8a3ce47.tar.gz rust-a969d409874f91e197a1cd336a368f02d8a3ce47.zip | |
File: Add documentation about dropping to sync_all
Diffstat (limited to 'src')
| -rw-r--r-- | src/libstd/fs.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libstd/fs.rs b/src/libstd/fs.rs index 034564250c3..c0d4dfc8927 100644 --- a/src/libstd/fs.rs +++ b/src/libstd/fs.rs @@ -394,9 +394,13 @@ impl File { /// Attempts to sync all OS-internal metadata to disk. /// - /// This function will attempt to ensure that all in-core data reaches the + /// This function will attempt to ensure that all in-memory data reaches the /// filesystem before returning. /// + /// This can be used to handle errors that would otherwise only be caught + /// when the `File` is closed. Dropping a file will ignore errors in + /// synchronizing this in-memory data. + /// /// # Examples /// /// ```no_run |
