We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a38511 commit a23ca7cCopy full SHA for a23ca7c
library/std/src/os/windows/io/handle.rs
@@ -175,7 +175,7 @@ impl FromRawHandle for OwnedHandle {
175
/// # Safety
176
///
177
/// The resource pointed to by `raw` must be open and suitable for assuming
178
- /// ownership.
+ /// ownership. The resource must not require any cleanup other than `CloseHandle`.
179
#[inline]
180
unsafe fn from_raw_handle(raw: RawHandle) -> Self {
181
assert!(!raw.is_null());
0 commit comments