Skip to content

Commit

Permalink
docs: fix stdin documentation (#6581)
Browse files Browse the repository at this point in the history
The code for `output` indicates that only sets `stdout` and `stderr`, 
yet the docs for `stdin` indicated that it too would be set. This seems 
like it was just a simple copy/paste typo, so correct `stdin` to note
that it just defaults to `inherit`.

Fixes #6577.
  • Loading branch information
roy-work authored May 23, 2024
1 parent 1914e1e commit 16ef7b1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tokio/src/process/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -544,11 +544,9 @@ impl Command {

/// Sets configuration for the child process's standard input (stdin) handle.
///
/// Defaults to [`inherit`] when used with `spawn` or `status`, and
/// defaults to [`piped`] when used with `output`.
/// Defaults to [`inherit`].
///
/// [`inherit`]: std::process::Stdio::inherit
/// [`piped`]: std::process::Stdio::piped
///
/// # Examples
///
Expand Down

0 comments on commit 16ef7b1

Please sign in to comment.