Skip to content

Commit 288094f

Browse files
ChrisDentongitbot
authored and
gitbot
committed
Update platform information for remove_file
1 parent 1cbc70e commit 288094f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

std/src/fs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2307,8 +2307,8 @@ impl AsInner<fs_imp::DirEntry> for DirEntry {
23072307
///
23082308
/// # Platform-specific behavior
23092309
///
2310-
/// This function currently corresponds to the `unlink` function on Unix
2311-
/// and the `DeleteFile` function on Windows.
2310+
/// This function currently corresponds to the `unlink` function on Unix.
2311+
/// On Windows, `DeleteFile` is used or `CreateFileW` and `SetInformationByHandle` for readonly files.
23122312
/// Note that, this [may change in the future][changes].
23132313
///
23142314
/// [changes]: io#platform-specific-behavior

0 commit comments

Comments
 (0)