Skip to content

Commit 1c6bf04

Browse files
Update library/std/src/os/windows/io/socket.rs
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
1 parent a23ca7c commit 1c6bf04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl FromRawSocket for OwnedSocket {
9898
/// # Safety
9999
///
100100
/// The resource pointed to by `raw` must be open and suitable for assuming
101-
/// ownership.
101+
/// ownership. The resource must not require cleanup other than `closesocket`.
102102
#[inline]
103103
unsafe fn from_raw_socket(raw: RawSocket) -> Self {
104104
debug_assert_ne!(raw, c::INVALID_SOCKET as RawSocket);

0 commit comments

Comments
 (0)