Skip to content

Commit 2c13da6

Browse files
authored
Rollup merge of #100839 - nelsonjchen:consistent_child_stdin_field_desc, r=thomcc
Make doc for stdin field of process consistent The other fields use this format and example.
2 parents 4c523b5 + 7abbfa8 commit 2c13da6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

library/std/src/process.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -169,15 +169,15 @@ use crate::sys_common::{AsInner, AsInnerMut, FromInner, IntoInner};
169169
pub struct Child {
170170
pub(crate) handle: imp::Process,
171171

172-
/// The handle for writing to the child's standard input (stdin), if it has
173-
/// been captured. To avoid partially moving
174-
/// the `child` and thus blocking yourself from calling
175-
/// functions on `child` while using `stdin`,
176-
/// you might find it helpful:
172+
/// The handle for writing to the child's standard input (stdin), if it
173+
/// has been captured. You might find it helpful to do
177174
///
178175
/// ```compile_fail,E0425
179176
/// let stdin = child.stdin.take().unwrap();
180177
/// ```
178+
///
179+
/// to avoid partially moving the `child` and thus blocking yourself from calling
180+
/// functions on `child` while using `stdin`.
181181
#[stable(feature = "process", since = "1.0.0")]
182182
pub stdin: Option<ChildStdin>,
183183

0 commit comments

Comments
 (0)