From da9a604c40dc59aa816b4b3ac78293f788cd3490 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 27 Jul 2017 07:00:48 -0600 Subject: [PATCH] Update tty.rs --- src/tty.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tty.rs b/src/tty.rs index 90a97e0..f153e0e 100644 --- a/src/tty.rs +++ b/src/tty.rs @@ -1,7 +1,7 @@ use std::{fs, io}; use std::os::unix::io::AsRawFd; -/// Is this stream an TTY? +/// Is this stream a TTY? #[cfg(not(target_os = "redox"))] pub fn is_tty(stream: &T) -> bool { use libc; @@ -9,7 +9,7 @@ pub fn is_tty(stream: &T) -> bool { unsafe { libc::isatty(stream.as_raw_fd()) == 1 } } -/// This will panic. +/// Is this stream a TTY? #[cfg(target_os = "redox")] pub fn is_tty(stream: &T) -> bool { use syscall;