Skip to content

Commit

Permalink
improve style and wording
Browse files Browse the repository at this point in the history
  • Loading branch information
maminrayej committed Feb 6, 2025
1 parent b1435c1 commit b3f297a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tokio/src/process/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1193,8 +1193,9 @@ impl Child {
/// }
/// ```
///
/// It is also possible to interact with the stdio of the child, for example
/// reading from its stdout, while waiting for it to exit.
/// You can also interact with the child's standard I/O. For example, you can
/// read its stdout while waiting for it to exit.
///
/// ```no_run
/// # use std::process::Stdio;
/// #
Expand All @@ -1220,7 +1221,7 @@ impl Child {
///
/// tokio::select! {
/// _ = wait_for_output => {}
/// _ = rx => { child.kill().await.expect("kill failed") },
/// _ = rx => child.kill().await.expect("kill failed"),
/// }
///
/// assert_eq!(buff, b"Hello World!\n");
Expand Down

0 comments on commit b3f297a

Please sign in to comment.