We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76e82d6 commit a969d40Copy full SHA for a969d40
src/libstd/fs.rs
@@ -394,9 +394,13 @@ impl File {
394
395
/// Attempts to sync all OS-internal metadata to disk.
396
///
397
- /// 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
398
/// filesystem before returning.
399
400
+ /// This can be used to handle errors that would otherwise only be caught
401
+ /// when the `File` is closed. Dropping a file will ignore errors in
402
+ /// synchronizing this in-memory data.
403
+ ///
404
/// # Examples
405
406
/// ```no_run
0 commit comments