Skip to content

Commit 16ef7b1

Browse files
authored
docs: fix stdin documentation (tokio-rs#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 tokio-rs#6577.
1 parent 1914e1e commit 16ef7b1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tokio/src/process/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -544,11 +544,9 @@ impl Command {
544544

545545
/// Sets configuration for the child process's standard input (stdin) handle.
546546
///
547-
/// Defaults to [`inherit`] when used with `spawn` or `status`, and
548-
/// defaults to [`piped`] when used with `output`.
547+
/// Defaults to [`inherit`].
549548
///
550549
/// [`inherit`]: std::process::Stdio::inherit
551-
/// [`piped`]: std::process::Stdio::piped
552550
///
553551
/// # Examples
554552
///

0 commit comments

Comments
 (0)