Skip to content

Commit

Permalink
Clarify stdin behavior of Command::output.
Browse files Browse the repository at this point in the history
Fixes #44929.
  • Loading branch information
frewsxcv committed Nov 23, 2017
1 parent b55d290 commit 2178e3a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/libstd/process.rs
Expand Up @@ -712,8 +712,10 @@ impl Command {
/// Executes the command as a child process, waiting for it to finish and
/// collecting all of its output.
///
/// By default, stdin, stdout and stderr are captured (and used to
/// provide the resulting output).
/// By default, stdout and stderr are captured (and used to provide the
/// resulting output). Stdin is not inherited from the parent and any
/// attempt by the child process to read from the stdin stream will result
/// in the stream immediately closing.
///
/// # Examples
///
Expand Down

0 comments on commit 2178e3a

Please sign in to comment.