about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-02-25 03:21:24 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-02-25 03:21:24 +0530
commit80ac3a8c5b0ba3d6bb930d4e75ee55a7d9e22105 (patch)
tree33e128940158f2630394d666a3f29ab08995a46c /src/libstd/sys
parent216be122a0ae2e79f7299565bd45cc0d9b415de4 (diff)
parent54b11066bb9af585f161164000c43fdfe21c646f (diff)
downloadrust-80ac3a8c5b0ba3d6bb930d4e75ee55a7d9e22105.tar.gz
rust-80ac3a8c5b0ba3d6bb930d4e75ee55a7d9e22105.zip
Rollup merge of #22772 - tbu-:pr_panic_fail, r=alexcrichton
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/windows/tty.rs2
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,