diff options
| author | Tobias Bucher <tobiasbucher5991@gmail.com> | 2015-02-24 17:01:50 +0100 |
|---|---|---|
| committer | Tobias Bucher <tobiasbucher5991@gmail.com> | 2015-02-24 17:02:26 +0100 |
| commit | 54b11066bb9af585f161164000c43fdfe21c646f (patch) | |
| tree | c25d0ac89d40ad3e16c20fb2af436272c5041408 /src/libstd/sys/windows | |
| parent | dccdde4007c191aa8b8d9cfffb0c7d3509fa675e (diff) | |
| download | rust-54b11066bb9af585f161164000c43fdfe21c646f.tar.gz rust-54b11066bb9af585f161164000c43fdfe21c646f.zip | |
Revert a wrong replace of "fail" to "panic"
Diffstat (limited to 'src/libstd/sys/windows')
| -rw-r--r-- | src/libstd/sys/windows/tty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/windows/tty.rs b/src/libstd/sys/windows/tty.rs index 8a8b5309057..c9bac69c434 100644 --- a/src/libstd/sys/windows/tty.rs +++ b/src/libstd/sys/windows/tty.rs @@ -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, |
