Skip to content

Commit 80ac3a8

Browse files
committed
Rollup merge of rust-lang#22772 - tbu-:pr_panic_fail, r=alexcrichton
2 parents 216be12 + 54b1106 commit 80ac3a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sys/windows/tty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fn invalid_encoding() -> IoError {
5252

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

0 commit comments

Comments
 (0)