tokio-rs / tokio

A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...
https://tokio.rs
MIT License
26.59k stars 2.45k forks source link

docs: `stdin` is always `inherit` by default #6581

Closed roy-work closed 4 months ago

roy-work commented 4 months ago

The code for output indicates that only sets stdout and stderr (as one would expect, IMO), 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.

Motivation

See #6577; the docs for stdin seem to disagree with the code for output.

Solution

Adjust the documentation to match the code.