We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
IsTerminal
1 parent f8ee355 commit bf7430fCopy full SHA for bf7430f
std/src/io/stdio.rs
@@ -1190,9 +1190,8 @@ pub trait IsTerminal: crate::sealed::Sealed {
1190
///
1191
/// - If you run this example by piping some text to it, e.g. `echo "foo" | path/to/executable`
1192
/// it will print: `Hello foo`.
1193
- /// - If you instead run the example interactively by running the executable directly, it will
1194
- /// panic with the message "Expected input to be piped to the process".
1195
- ///
+ /// - If you instead run the example interactively by running `path/to/executable` directly, it will
+ /// prompt for input.
1196
1197
/// [changes]: io#platform-specific-behavior
1198
/// [`Stdin`]: crate::io::Stdin
0 commit comments