Fix typo in std/src/os/fd/owned.rs

This commit is contained in:
Taiki Endo 2023-04-02 02:14:37 +09:00
parent b9535c0b7d
commit 455a9601da

View File

@ -268,7 +268,7 @@ impl AsFd for OwnedFd {
#[inline] #[inline]
fn as_fd(&self) -> BorrowedFd<'_> { fn as_fd(&self) -> BorrowedFd<'_> {
// Safety: `OwnedFd` and `BorrowedFd` have the same validity // Safety: `OwnedFd` and `BorrowedFd` have the same validity
// invariants, and the `BorrowdFd` is bounded by the lifetime // invariants, and the `BorrowedFd` is bounded by the lifetime
// of `&self`. // of `&self`.
unsafe { BorrowedFd::borrow_raw(self.as_raw_fd()) } unsafe { BorrowedFd::borrow_raw(self.as_raw_fd()) }
} }