@@ -22,7 +22,7 @@ use crate::sys_common::{AsInner, FromInner, IntoInner};
22
22
/// so it can be used in FFI in places where a handle is passed as an argument,
23
23
/// it is not captured or consumed.
24
24
///
25
- /// Note that it *may* have the value `-1`, which in `BorrowedFd ` always
25
+ /// Note that it *may* have the value `-1`, which in `BorrowedHandle ` always
26
26
/// represents the current process handle, and not `INVALID_HANDLE_VALUE`,
27
27
/// despite the two having the same value. See [here] for the full story.
28
28
///
@@ -46,7 +46,7 @@ pub struct BorrowedHandle<'handle> {
46
46
///
47
47
/// This closes the handle on drop.
48
48
///
49
- /// Note that it *may* have the value `-1`, which in `OwnedFd ` always
49
+ /// Note that it *may* have the value `-1`, which in `OwnedHandle ` always
50
50
/// represents the current process handle, and not `INVALID_HANDLE_VALUE`,
51
51
/// despite the two having the same value. See [here] for the full story.
52
52
///
@@ -77,7 +77,7 @@ pub struct OwnedHandle {
77
77
/// `NULL`. This ensures that such FFI calls cannot start using the handle without
78
78
/// checking for `NULL` first.
79
79
///
80
- /// This type may hold any handle value that [`OwnedFd `] may hold, except `NULL`. It may
80
+ /// This type may hold any handle value that [`OwnedHandle `] may hold, except `NULL`. It may
81
81
/// hold `-1`, even though `-1` has the same value as `INVALID_HANDLE_VALUE`, because in
82
82
/// `HandleOrNull`, `-1` is interpreted to mean the current process handle.
83
83
///
@@ -97,7 +97,7 @@ pub struct HandleOrNull(OwnedHandle);
97
97
/// `INVALID_HANDLE_VALUE`. This ensures that such FFI calls cannot start using the handle without
98
98
/// checking for `INVALID_HANDLE_VALUE` first.
99
99
///
100
- /// This type may hold any handle value that [`OwnedFd `] may hold, except `-1`. It must not
100
+ /// This type may hold any handle value that [`OwnedHandle `] may hold, except `-1`. It must not
101
101
/// hold `-1`, because `-1` in `HandleOrInvalid` is interpreted to mean `INVALID_HANDLE_VALUE`.
102
102
///
103
103
/// This type may hold `NULL`, because APIs that use `INVALID_HANDLE_VALUE` as their sentry value
0 commit comments