From bc9de771d5f2ab71a0e3b0eb27a92c65e8ddd4b9 Mon Sep 17 00:00:00 2001 From: Subhash Bhushan Date: Sat, 8 Nov 2014 21:17:51 +0530 Subject: Rename remaining Failures to Panic --- src/libstd/sys/windows/tty.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libstd/sys') 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, -- cgit 1.4.1-3-g733a5