Skip to content

Commit ba6050f

Browse files
committed
Remove the documentation comment for OwnedSocket::from_raw_socket.
This function is documented in more detail in the `FromRawSocket` trait.
1 parent f88fb2a commit ba6050f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

library/std/src/os/windows/io/socket.rs

-7
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,6 @@ impl IntoRawSocket for OwnedSocket {
168168
}
169169

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

0 commit comments

Comments
 (0)