From c4e44d7373dd730f938d1dcab78271a6f5bee1cb Mon Sep 17 00:00:00 2001 From: Imbolc Date: Wed, 29 Jul 2020 08:18:01 +0300 Subject: [PATCH] Update `fs::remove_file` docs Mention that absence of file causes an error --- library/std/src/fs.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs index 4d031cb7a52e4..047478fcc855a 100644 --- a/library/std/src/fs.rs +++ b/library/std/src/fs.rs @@ -1574,6 +1574,7 @@ impl AsInner for DirEntry { /// limited to just these cases: /// /// * `path` points to a directory. +/// * The file doesn't exist. /// * The user lacks permissions to remove the file. /// /// # Examples