diff --git a/library/std/src/os/windows/io/handle.rs b/library/std/src/os/windows/io/handle.rs index 3f9a146786c55216a74fc6c94289785e98e8d75a..2d561ad476a2a119970448e2a0f472c9d5126ef7 100644 --- a/library/std/src/os/windows/io/handle.rs +++ b/library/std/src/os/windows/io/handle.rs @@ -58,6 +58,10 @@ pub struct OwnedHandle { /// where `INVALID_HANDLE_VALUE` is used as the sentry value, and null values /// are not used at all, such as in the return value of `CreateFileW`. /// +/// The main thing you can do with an `OptionFileHandle` is to convert it into +/// an `OwnedHandle` using its [`TryFrom`] implementation, and this conversion +/// takes care of the check for `INVALID_HANDLE_VALUE`. +/// /// If this holds an owned handle, it closes the handle on drop. /// /// This uses `repr(transparent)` and has the representation of a host handle,