Skip to content

Commit

Permalink
unix: fix typo in safety comment (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
durin42 authored Oct 22, 2024
1 parent adc71a5 commit ebd3841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<File, FromEnvErrorInner> {
// 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)
Expand Down

0 comments on commit ebd3841

Please sign in to comment.