Skip to content

Commit 50522fa

Browse files
committed
Update platform information for remove_file
1 parent 457e528 commit 50522fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: library/std/src/fs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2284,8 +2284,8 @@ impl AsInner<fs_imp::DirEntry> for DirEntry {
22842284
///
22852285
/// # Platform-specific behavior
22862286
///
2287-
/// This function currently corresponds to the `unlink` function on Unix
2288-
/// and the `DeleteFile` function on Windows.
2287+
/// This function currently corresponds to the `unlink` function on Unix.
2288+
/// On Windows, `DeleteFile` is used or `CreateFileW` and `SetInformationByHandle` for readonly files.
22892289
/// Note that, this [may change in the future][changes].
22902290
///
22912291
/// [changes]: io#platform-specific-behavior

0 commit comments

Comments
 (0)