diff options
| author | bors <bors@rust-lang.org> | 2024-06-05 20:53:32 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-06-05 20:53:32 +0000 |
| commit | 72fdf913c53dd0e75313ba83e4aa80df3f6e2871 (patch) | |
| tree | 5829faefbcc8109308bf1c33fe5f0031e3f878c2 /library/std/src/io/stdio.rs | |
| parent | 7ebd2bdbf6d798e6e711a0100981b0ff029abf5f (diff) | |
| parent | fa58891f992b09dddd42cb90099d54ea04282a9a (diff) | |
| download | rust-72fdf913c53dd0e75313ba83e4aa80df3f6e2871.tar.gz rust-72fdf913c53dd0e75313ba83e4aa80df3f6e2871.zip | |
Auto merge of #126038 - matthiaskrgr:rollup-h4rm3x2, r=matthiaskrgr
Rollup of 9 pull requests Successful merges: - #124840 (resolve: mark it undetermined if single import is not has any bindings) - #125622 (Winnow private method candidates instead of assuming any candidate of the right name will apply) - #125648 (Remove unused(?) `~/rustsrc` folder from docker script) - #125672 (Add more ABI test cases to miri (RFC 3391)) - #125800 (Fix `mut` static task queue in SGX target) - #125871 (Orphanck[old solver]: Consider opaque types to never cover type parameters) - #125893 (Handle all GVN binops in a single place.) - #126008 (Port `tests/run-make-fulldeps/issue-19371` to ui-fulldeps) - #126032 (Update description of the `IsTerminal` example) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'library/std/src/io/stdio.rs')
| -rw-r--r-- | library/std/src/io/stdio.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/library/std/src/io/stdio.rs b/library/std/src/io/stdio.rs index c8968b74b12..9aee2bb5e1c 100644 --- a/library/std/src/io/stdio.rs +++ b/library/std/src/io/stdio.rs @@ -1190,9 +1190,8 @@ pub trait IsTerminal: crate::sealed::Sealed { /// /// - If you run this example by piping some text to it, e.g. `echo "foo" | path/to/executable` /// it will print: `Hello foo`. - /// - If you instead run the example interactively by running the executable directly, it will - /// panic with the message "Expected input to be piped to the process". - /// + /// - If you instead run the example interactively by running `path/to/executable` directly, it will + /// prompt for input. /// /// [changes]: io#platform-specific-behavior /// [`Stdin`]: crate::io::Stdin |
