diff options
| author | Chris Denton <chris@chrisdenton.dev> | 2024-12-26 10:42:06 +0000 |
|---|---|---|
| committer | Chris Denton <chris@chrisdenton.dev> | 2025-01-26 05:42:58 +0000 |
| commit | 50522fad483ad86291db1871b396f9d54f0de6e7 (patch) | |
| tree | 92ab8acac1758687528bcfbdb5e736909701eb85 | |
| parent | 457e5287944a3080c4db8eff502c71c6c4936231 (diff) | |
| download | rust-50522fad483ad86291db1871b396f9d54f0de6e7.tar.gz rust-50522fad483ad86291db1871b396f9d54f0de6e7.zip | |
Update platform information for remove_file
| -rw-r--r-- | library/std/src/fs.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs index 1f8aac48a9a..75d1fcc166a 100644 --- a/library/std/src/fs.rs +++ b/library/std/src/fs.rs @@ -2284,8 +2284,8 @@ impl AsInner<fs_imp::DirEntry> for DirEntry { /// /// # Platform-specific behavior /// -/// This function currently corresponds to the `unlink` function on Unix -/// and the `DeleteFile` function on Windows. +/// This function currently corresponds to the `unlink` function on Unix. +/// On Windows, `DeleteFile` is used or `CreateFileW` and `SetInformationByHandle` for readonly files. /// Note that, this [may change in the future][changes]. /// /// [changes]: io#platform-specific-behavior |
