Skip to content

Commit 102573a

Browse files
committed
Improve doc
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
1 parent 4d76786 commit 102573a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/stdio.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ impl Stdio {
6161
Self(StdioImpl::Fd(OwnedFd::from_raw_fd(fd), true))
6262
}
6363
}
64+
/// **Deprecated, use [`Stdio::from_raw_fd_owned`] instead.**
65+
///
6466
/// FromRawFd takes ownership of the fd passed in
6567
/// and closes the fd on drop.
6668
///
@@ -114,8 +116,8 @@ macro_rules! impl_from_for_stdio {
114116
since = "0.9.8",
115117
note = "Use From<OwnedFd> for Stdio or Stdio::from_raw_fd_owned instead"
116118
)]
117-
/// deprecated, use `From<OwnedFd> for Stdio` or
118-
/// [`Stdio::from_raw_fd_owned`] instead.
119+
/// **Deprecated, use `From<OwnedFd> for Stdio` or
120+
/// [`Stdio::from_raw_fd_owned`] instead.**
119121
impl From<$type> for Stdio {
120122
fn from(arg: $type) -> Self {
121123
let fd = arg.into_raw_fd();

0 commit comments

Comments
 (0)