Skip to content

Commit 0dd362e

Browse files
committed
Auto merge of #74896 - imbolc:patch-1, r=kennytm
Update `fs::remove_file` docs Mention that absence of file causes an error
2 parents 10c3757 + c4e44d7 commit 0dd362e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -1574,6 +1574,7 @@ impl AsInner<fs_imp::DirEntry> for DirEntry {
15741574
/// limited to just these cases:
15751575
///
15761576
/// * `path` points to a directory.
1577+
/// * The file doesn't exist.
15771578
/// * The user lacks permissions to remove the file.
15781579
///
15791580
/// # Examples

0 commit comments

Comments
 (0)