Skip to content

Commit a23ca7c

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ impl FromRawHandle for OwnedHandle {
175175
/// # Safety
176176
///
177177
/// The resource pointed to by `raw` must be open and suitable for assuming
178-
/// ownership.
178+
/// ownership. The resource must not require any cleanup other than `CloseHandle`.
179179
#[inline]
180180
unsafe fn from_raw_handle(raw: RawHandle) -> Self {
181181
assert!(!raw.is_null());

0 commit comments

Comments
 (0)