Rollup merge of #109840 - taiki-e:typo, r=ChrisDenton

Fix typo in std/src/os/fd/owned.rs
This commit is contained in:
Nilstrieb 2023-04-02 10:08:34 +02:00 committed by GitHub
commit 099f3469a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()) }
} }