Skip to content

Commit ebd3841

Browse files
authored
unix: fix typo in safety comment (#107)
1 parent adc71a5 commit ebd3841

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ unsafe fn fd_check(fd: c_int, check_pipe: bool) -> Result<(), FromEnvErrorInner>
516516
}
517517

518518
fn clone_fd_and_set_cloexec(fd: c_int) -> Result<File, FromEnvErrorInner> {
519-
// Safety: fd is a valid fd dand it remains open until returns
519+
// Safety: fd is a valid fd and it remains open until returns
520520
unsafe { BorrowedFd::borrow_raw(fd) }
521521
.try_clone_to_owned()
522522
.map(File::from)

0 commit comments

Comments
 (0)