about summary refs log tree commit diff
path: root/library/std/src/sys
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-06-04 08:25:49 +0100
committerGitHub <noreply@github.com>2024-06-04 08:25:49 +0100
commita04a6038bb634607d278805199894dc19527b422 (patch)
tree618af55d33d2daec90e4a6f7ba74f13fe1f5476a /library/std/src/sys
parent6abb7fba12566f799b16108989c2d547d8fb1c5f (diff)
parent45760276fd27086995d07abeae9f7e86660c2e3c (diff)
Rollup merge of #125919 - tbu-:pr_fix_typo, r=lqd
Remove stray "this"
Diffstat (limited to 'library/std/src/sys')
-rw-r--r--library/std/src/sys/pal/unix/fs.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/library/std/src/sys/pal/unix/fs.rs b/library/std/src/sys/pal/unix/fs.rs
index fbbd40bfb79..a79a232e3d5 100644
--- a/library/std/src/sys/pal/unix/fs.rs
+++ b/library/std/src/sys/pal/unix/fs.rs
@@ -1910,8 +1910,7 @@ pub fn copy(from: &Path, to: &Path) -> io::Result<u64> {
             // The code below ensures that `FreeOnDrop` is never a null pointer
             unsafe {
                 // `copyfile_state_free` returns -1 if the `to` or `from` files
-                // cannot be closed. However, this is not considered this an
-                // error.
+                // cannot be closed. However, this is not considered an error.
                 libc::copyfile_state_free(self.0);
             }
         }