about summary refs log tree commit diff
path: root/library/std/src/os
diff options
context:
space:
mode:
authorDan Gohman <dev@sunfishcode.online>2021-07-21 10:49:16 -0700
committerDan Gohman <dev@sunfishcode.online>2021-08-19 12:02:39 -0700
commita23ca7ceb1a3647b9671d929a6c4e4091a7935a7 (patch)
tree0c61485b5572d4308f28d44cc8330cb3acbfef11 /library/std/src/os
parent3a38511ab338cdfe5dbec2382b819f4834eeef1d (diff)
downloadrust-a23ca7ceb1a3647b9671d929a6c4e4091a7935a7.tar.gz
rust-a23ca7ceb1a3647b9671d929a6c4e4091a7935a7.zip
Update library/std/src/os/windows/io/handle.rs
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'library/std/src/os')
-rw-r--r--library/std/src/os/windows/io/handle.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/os/windows/io/handle.rs b/library/std/src/os/windows/io/handle.rs
index d881a67709d..3f9a146786c 100644
--- a/library/std/src/os/windows/io/handle.rs
+++ b/library/std/src/os/windows/io/handle.rs
@@ -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());