From ca58e23ede760152eaa6c6fb7b880a991ade0fd0 Mon Sep 17 00:00:00 2001 From: Tommaso Allevi Date: Fri, 31 Jan 2025 11:01:37 +0100 Subject: [PATCH 1/2] Update fs.rs --- 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 a5b0111adfb4a..5631c3e0156cf 100644 --- a/library/std/src/fs.rs +++ b/library/std/src/fs.rs @@ -2505,6 +2505,7 @@ pub fn rename, Q: AsRef>(from: P, to: Q) -> io::Result<()> /// * `from` does not exist. /// * The current process does not have the permission rights to read /// `from` or write `to`. +/// * The parent folder of `to` doesn't exists /// /// # Examples /// From 3ad847779ec12875a96c563dadb63493b28856c0 Mon Sep 17 00:00:00 2001 From: Tommaso Allevi Date: Wed, 19 Feb 2025 09:17:18 +0100 Subject: [PATCH 2/2] Update library/std/src/fs.rs Co-authored-by: Amanieu d'Antras --- library/std/src/fs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs index 5631c3e0156cf..2aa00c0c29483 100644 --- a/library/std/src/fs.rs +++ b/library/std/src/fs.rs @@ -2505,7 +2505,7 @@ pub fn rename, Q: AsRef>(from: P, to: Q) -> io::Result<()> /// * `from` does not exist. /// * The current process does not have the permission rights to read /// `from` or write `to`. -/// * The parent folder of `to` doesn't exists +/// * The parent directory of `to` doesn't exist. /// /// # Examples ///