]> git.lizzy.rs Git - rust.git/commitdiff
Update `fs::remove_file` docs
authorImbolc <imbolc@imbolc.name>
Wed, 29 Jul 2020 05:18:01 +0000 (08:18 +0300)
committerGitHub <noreply@github.com>
Wed, 29 Jul 2020 05:18:01 +0000 (08:18 +0300)
Mention that absence of file causes an error

library/std/src/fs.rs

index 4d031cb7a52e4c69253e4239cda3a78e9232e1cc..047478fcc855a62294e12ab0099c0aa85a45bb4b 100644 (file)
@@ -1574,6 +1574,7 @@ fn as_inner(&self) -> &fs_imp::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