1
Fork 0

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

Co-authored-by: Josh Triplett <josh@joshtriplett.org>
This commit is contained in:
Dan Gohman 2021-07-21 10:49:16 -07:00
parent 3a38511ab3
commit a23ca7ceb1

View file

@ -175,7 +175,7 @@ impl FromRawHandle for OwnedHandle {
/// # Safety
///
/// The resource pointed to by `raw` must be open and suitable for assuming
/// ownership.
/// ownership. The resource must not require any cleanup other than `CloseHandle`.
#[inline]
unsafe fn from_raw_handle(raw: RawHandle) -> Self {
assert!(!raw.is_null());