about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorImbolc <imbolc@imbolc.name>2020-07-29 08:18:01 +0300
committerGitHub <noreply@github.com>2020-07-29 08:18:01 +0300
commitc4e44d7373dd730f938d1dcab78271a6f5bee1cb (patch)
treedea4abcba55492d0a4a9ff8bd2a0d26ce1354c51 /library/std/src
parent517385b31b0add8487ff3cc27e216cf3f867ab44 (diff)
downloadrust-c4e44d7373dd730f938d1dcab78271a6f5bee1cb.tar.gz
rust-c4e44d7373dd730f938d1dcab78271a6f5bee1cb.zip
Update `fs::remove_file` docs
Mention that absence of file causes an error
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/fs.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs
index 4d031cb7a52..047478fcc85 100644
--- a/library/std/src/fs.rs
+++ b/library/std/src/fs.rs
@@ -1574,6 +1574,7 @@ impl AsInner<fs_imp::DirEntry> 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