Skip to content

Commit 54b1106

Browse files
committed
Revert a wrong replace of "fail" to "panic"
1 parent dccdde4 commit 54b1106

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sys/windows/tty.rs

+1-1
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)