docs: fix stdin documentation (#6581)

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.
This commit is contained in:
Roy Wellington 2024-05-23 00:52:57 -04:00 committed by GitHub
parent 1914e1e4b9
commit 16ef7b1fd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
///