about summary refs log tree commit diff
path: root/src/libstd/sys/windows
diff options
context:
space:
mode:
authorSubhash Bhushan <subhash.bhushan@kaybus.com>2014-11-08 21:17:51 +0530
committerSubhash Bhushan <subhash.bhushan@kaybus.com>2014-11-20 23:45:42 +0530
commitbc9de771d5f2ab71a0e3b0eb27a92c65e8ddd4b9 (patch)
tree3c4b73ceb5ca5574d2025d9da1ed86a2f6af2b71 /src/libstd/sys/windows
parent394269d16e3752a23ffa273e68f8aaefd2a510c4 (diff)
downloadrust-bc9de771d5f2ab71a0e3b0eb27a92c65e8ddd4b9.tar.gz
rust-bc9de771d5f2ab71a0e3b0eb27a92c65e8ddd4b9.zip
Rename remaining Failures to Panic
Diffstat (limited to 'src/libstd/sys/windows')
-rw-r--r--src/libstd/sys/windows/tty.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/sys/windows/tty.rs b/src/libstd/sys/windows/tty.rs
index 7d001e6394c..0e7b06cbb94 100644
--- a/src/libstd/sys/windows/tty.rs
+++ b/src/libstd/sys/windows/tty.rs
@@ -14,8 +14,8 @@
 //!
 //! This module contains the implementation of a Windows specific console TTY.
 //! Also converts between UTF-16 and UTF-8. Windows has very poor support for
-//! UTF-8 and some functions will fail. In particular ReadFile and ReadConsole
-//! will fail when the codepage is set to UTF-8 and a Unicode character is
+//! UTF-8 and some functions will panic. In particular ReadFile and ReadConsole
+//! will panic when the codepage is set to UTF-8 and a Unicode character is
 //! entered.
 //!
 //! FIXME
@@ -48,7 +48,7 @@ fn invalid_encoding() -> IoError {
 
 pub fn is_tty(fd: c_int) -> bool {
     let mut out: DWORD = 0;
-    // If this function doesn't fail then fd is a TTY
+    // If this function doesn't panic then fd is a TTY
     match unsafe { GetConsoleMode(get_osfhandle(fd) as HANDLE,
                                   &mut out as LPDWORD) } {
         0 => false,