diff options
| author | cod10129 <110200933+cod10129@users.noreply.github.com> | 2024-12-01 13:54:04 -0600 |
|---|---|---|
| committer | cod10129 <110200933+cod10129@users.noreply.github.com> | 2024-12-01 13:54:04 -0600 |
| commit | 77b2fe19443ea44fabc3b4221b429165d4137804 (patch) | |
| tree | f7c3d74f4c20082df50b9969a718bdf1db79027c | |
| parent | ca4e54f032a49a23883c429ab34911ed856973c2 (diff) | |
| download | rust-77b2fe19443ea44fabc3b4221b429165d4137804.tar.gz rust-77b2fe19443ea44fabc3b4221b429165d4137804.zip | |
add isatty alias for is_terminal
| -rw-r--r-- | library/std/src/io/stdio.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/io/stdio.rs b/library/std/src/io/stdio.rs index 35b38ed783f..318c3508221 100644 --- a/library/std/src/io/stdio.rs +++ b/library/std/src/io/stdio.rs @@ -1200,6 +1200,7 @@ pub trait IsTerminal: crate::sealed::Sealed { /// /// [changes]: io#platform-specific-behavior /// [`Stdin`]: crate::io::Stdin + #[doc(alias = "isatty")] #[stable(feature = "is_terminal", since = "1.70.0")] fn is_terminal(&self) -> bool; } |
