File tree 3 files changed +8
-6
lines changed
3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,8 @@ impl BorrowedFd<'_> {
77
77
}
78
78
79
79
impl OwnedFd {
80
- /// Creates a new `OwnedFd` instance that shares the same underlying file handle
81
- /// as the existing `OwnedFd` instance.
80
+ /// Creates a new `OwnedFd` instance that shares the same underlying file
81
+ /// description as the existing `OwnedFd` instance.
82
82
#[ stable( feature = "io_safety" , since = "1.63.0" ) ]
83
83
pub fn try_clone ( & self ) -> crate :: io:: Result < Self > {
84
84
self . as_fd ( ) . try_clone_to_owned ( )
@@ -108,6 +108,8 @@ impl BorrowedFd<'_> {
108
108
Ok ( unsafe { OwnedFd :: from_raw_fd ( fd) } )
109
109
}
110
110
111
+ /// Creates a new `OwnedFd` instance that shares the same underlying file
112
+ /// description as the existing `BorrowedFd` instance.
111
113
#[ cfg( target_arch = "wasm32" ) ]
112
114
#[ stable( feature = "io_safety" , since = "1.63.0" ) ]
113
115
pub fn try_clone_to_owned ( & self ) -> crate :: io:: Result < OwnedFd > {
Original file line number Diff line number Diff line change @@ -177,8 +177,8 @@ impl TryFrom<HandleOrNull> for OwnedHandle {
177
177
}
178
178
179
179
impl OwnedHandle {
180
- /// Creates a new `OwnedHandle` instance that shares the same underlying file handle
181
- /// as the existing `OwnedHandle` instance.
180
+ /// Creates a new `OwnedHandle` instance that shares the same underlying
181
+ /// object as the existing `OwnedHandle` instance.
182
182
#[ stable( feature = "io_safety" , since = "1.63.0" ) ]
183
183
pub fn try_clone ( & self ) -> crate :: io:: Result < Self > {
184
184
self . as_handle ( ) . try_clone_to_owned ( )
Original file line number Diff line number Diff line change @@ -82,8 +82,8 @@ impl BorrowedSocket<'_> {
82
82
}
83
83
84
84
impl OwnedSocket {
85
- /// Creates a new `OwnedSocket` instance that shares the same underlying socket
86
- /// as the existing `OwnedSocket` instance.
85
+ /// Creates a new `OwnedSocket` instance that shares the same underlying
86
+ /// object as the existing `OwnedSocket` instance.
87
87
#[ stable( feature = "io_safety" , since = "1.63.0" ) ]
88
88
pub fn try_clone ( & self ) -> io:: Result < Self > {
89
89
self . as_socket ( ) . try_clone_to_owned ( )
You can’t perform that action at this time.
0 commit comments