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

Co-authored-by: Josh Triplett <josh@joshtriplett.org>
This commit is contained in:
Dan Gohman 2021-07-27 17:23:13 -07:00
parent a23ca7ceb1
commit 1c6bf04edb
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ impl FromRawSocket for OwnedSocket {
/// # Safety
///
/// The resource pointed to by `raw` must be open and suitable for assuming
/// ownership.
/// ownership. The resource must not require cleanup other than `closesocket`.
#[inline]
unsafe fn from_raw_socket(raw: RawSocket) -> Self {
debug_assert_ne!(raw, c::INVALID_SOCKET as RawSocket);