Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/libstd/sys/windows/tty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fn invalid_encoding() -> IoError {

pub fn is_tty(fd: c_int) -> bool {
let mut out: DWORD = 0;
// If this function doesn't panic then fd is a TTY
// If this function doesn't return an error, then fd is a TTY
match unsafe { GetConsoleMode(get_osfhandle(fd) as HANDLE,
&mut out as LPDWORD) } {
0 => false,
Expand Down