Rollup merge of #125919 - tbu-:pr_fix_typo, r=lqd

Remove stray "this"
This commit is contained in:
许杰友 Jieyou Xu (Joe) 2024-06-04 08:25:49 +01:00 committed by GitHub
commit a04a6038bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}
}