about summary refs log tree commit diff
path: root/src/libnative
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-10-01 03:17:24 +0000
committerbors <bors@rust-lang.org>2014-10-01 03:17:24 +0000
commit2f15dcd4d3865f9cc466637027eb02d5607b2bb7 (patch)
tree1a4d8526c45a53753c612bcbb6d283928c927cbc /src/libnative
parent57a05cf49b3149427e3fe190c07f8343a29ad86c (diff)
parent416144b8279fbffceacea6d0fd90e0fd1f8ce53d (diff)
downloadrust-2f15dcd4d3865f9cc466637027eb02d5607b2bb7.tar.gz
rust-2f15dcd4d3865f9cc466637027eb02d5607b2bb7.zip
auto merge of #17584 : pcwalton/rust/range-patterns-dotdotdot, r=nick29581
This breaks code that looks like:

    match foo {
        1..3 => { ... }
    }

Instead, write:

    match foo {
        1...3 => { ... }
    }

Closes #17295.

r? @nick29581 
Diffstat (limited to 'src/libnative')
-rw-r--r--src/libnative/io/tty_windows.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libnative/io/tty_windows.rs b/src/libnative/io/tty_windows.rs
index 7263036e165..1c3904a8943 100644
--- a/src/libnative/io/tty_windows.rs
+++ b/src/libnative/io/tty_windows.rs
@@ -67,7 +67,7 @@ impl WindowsTTY {
         // If the file descriptor is one of stdin, stderr, or stdout
         // then it should not be closed by us
         let closeme = match fd {
-            0..2 => false,
+            0...2 => false,
             _ => true,
         };
         let handle = unsafe { get_osfhandle(fd) as HANDLE };