From bf7430fdc683f5d1efb590b5480aec8c318ce0be Mon Sep 17 00:00:00 2001
From: Chris Denton <chris@chrisdenton.dev>
Date: Wed, 5 Jun 2024 14:28:42 +0000
Subject: [PATCH] Update description of the `IsTerminal` example

---
 std/src/io/stdio.rs | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/std/src/io/stdio.rs b/std/src/io/stdio.rs
index c8968b74b12d1..9aee2bb5e1c5c 100644
--- a/std/src/io/stdio.rs
+++ b/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