about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDan Gohman <dev@sunfishcode.online>2022-02-02 16:23:23 -0800
committerDan Gohman <dev@sunfishcode.online>2022-02-02 16:23:23 -0800
commitba6050f7421bb6a1f00b6633257ce60cd25089b7 (patch)
tree74fc3757fbea0ed2d367f47f8d24c025d4025030
parentf88fb2a9a5d5f3acf5ff284c411022e14c28207b (diff)
downloadrust-ba6050f7421bb6a1f00b6633257ce60cd25089b7.tar.gz
rust-ba6050f7421bb6a1f00b6633257ce60cd25089b7.zip
Remove the documentation comment for `OwnedSocket::from_raw_socket`.
This function is documented in more detail in the `FromRawSocket` trait.
-rw-r--r--library/std/src/os/windows/io/socket.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/library/std/src/os/windows/io/socket.rs b/library/std/src/os/windows/io/socket.rs
index 26b569bcdd3..c1bdef29f53 100644
--- a/library/std/src/os/windows/io/socket.rs
+++ b/library/std/src/os/windows/io/socket.rs
@@ -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);