From 16ef7b1fd5b370208c5b9604e3fb0a964f24e92f Mon Sep 17 00:00:00 2001 From: Roy Wellington <53838718+roy-work@users.noreply.github.com> Date: Thu, 23 May 2024 00:52:57 -0400 Subject: [PATCH] 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. --- tokio/src/process/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tokio/src/process/mod.rs b/tokio/src/process/mod.rs index fc661d89c..585dbdd6a 100644 --- a/tokio/src/process/mod.rs +++ b/tokio/src/process/mod.rs @@ -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 ///