Skip to content

Commit 51cbc01

Browse files
committed
Command::spawn: docs: Suggest use of status instead
If you don't need to call methods on the `Child`, then `status` is more convenient. This should be mentioned. Signed-off-by: Ian Jackson <[email protected]>
1 parent 598bee0 commit 51cbc01

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/std/src/process.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,9 @@ impl Command {
832832
///
833833
/// By default, stdin, stdout and stderr are inherited from the parent.
834834
///
835+
/// If you just want to run the command and wait for it to complete, consider using
836+
/// [`Command::status`] instead.
837+
///
835838
/// # Examples
836839
///
837840
/// Basic usage:

0 commit comments

Comments
 (0)