Skip to content

Commit

Permalink
Remove the documentation comment for OwnedSocket::from_raw_socket.
Browse files Browse the repository at this point in the history
This function is documented in more detail in the `FromRawSocket` trait.
  • Loading branch information
sunfishcode committed Feb 3, 2022
1 parent f88fb2a commit ba6050f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions library/std/src/os/windows/io/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,6 @@ impl IntoRawSocket for OwnedSocket {
}

impl FromRawSocket for OwnedSocket {
/// Constructs a new instance of `Self` from the given raw socket.
///
/// # Safety
///
/// The resource pointed to by `socket` must be open and suitable for
/// assuming ownership. The resource must not require cleanup other than
/// `closesocket`.
#[inline]
unsafe fn from_raw_socket(socket: RawSocket) -> Self {
debug_assert_ne!(socket, c::INVALID_SOCKET as RawSocket);
Expand Down

0 comments on commit ba6050f

Please sign in to comment.