Fix two copy+pastos.

This commit is contained in:
Dan Gohman 2022-02-01 14:27:54 -08:00
parent 713bb19ca3
commit 8516895170
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ pub trait AsRawFd {
/// destroyed. /// destroyed.
/// ///
/// However, borrowing is not strictly required. See [`AsFd::as_fd`] /// However, borrowing is not strictly required. See [`AsFd::as_fd`]
/// for an API which strictly borrows a handle. /// for an API which strictly borrows a file descriptor.
/// ///
/// # Example /// # Example
/// ///

View File

@ -186,7 +186,7 @@ pub trait FromRawSocket {
/// ///
/// The `socket` passed in must: /// The `socket` passed in must:
/// - be a valid an open socket, /// - be a valid an open socket,
/// - be a handle for a resource that may be freed via [`closesocket`]. /// - be a socket that may be freed via [`closesocket`].
/// ///
/// [`closesocket`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-closesocket /// [`closesocket`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-closesocket
#[stable(feature = "from_raw_os", since = "1.1.0")] #[stable(feature = "from_raw_os", since = "1.1.0")]