提交 a23ca7ce 编写于 作者: D Dan Gohman

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

Co-authored-by: NJosh Triplett <josh@joshtriplett.org>
上级 3a38511a
......@@ -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());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册