We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dccdde4 commit 54b1106Copy full SHA for 54b1106
src/libstd/sys/windows/tty.rs
@@ -52,7 +52,7 @@ fn invalid_encoding() -> IoError {
52
53
pub fn is_tty(fd: c_int) -> bool {
54
let mut out: DWORD = 0;
55
- // If this function doesn't panic then fd is a TTY
+ // If this function doesn't return an error, then fd is a TTY
56
match unsafe { GetConsoleMode(get_osfhandle(fd) as HANDLE,
57
&mut out as LPDWORD) } {
58
0 => false,
0 commit comments