Skip to content

Commit

Permalink
std _in_ not out here
Browse files Browse the repository at this point in the history
  • Loading branch information
softprops committed Sep 6, 2016
1 parent bb68730 commit 2a88127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub fn is(stream: Stream) -> bool {
let fd = match stream {
Stream::Stdout => libc::STDOUT_FILENO,
Stream::Stderr => libc::STDERR_FILENO,
Stream::Stdin => libc::STDERR_FILENO
Stream::Stdin => libc::STDIN_FILENO
};
unsafe { libc::isatty(fd) != 0 }
}
Expand Down

0 comments on commit 2a88127

Please sign in to comment.