From ebd38416dbe9f604d6d4fce6b962419938eec144 Mon Sep 17 00:00:00 2001 From: Augie Fackler Date: Tue, 22 Oct 2024 14:20:42 -0400 Subject: [PATCH] unix: fix typo in safety comment (#107) --- src/unix.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix.rs b/src/unix.rs index cd05edd..8467368 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -516,7 +516,7 @@ unsafe fn fd_check(fd: c_int, check_pipe: bool) -> Result<(), FromEnvErrorInner> } fn clone_fd_and_set_cloexec(fd: c_int) -> Result { - // Safety: fd is a valid fd dand it remains open until returns + // Safety: fd is a valid fd and it remains open until returns unsafe { BorrowedFd::borrow_raw(fd) } .try_clone_to_owned() .map(File::from)