about summary refs log tree commit diff
path: root/src/libstd
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/libstd
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/libstd')
-rw-r--r--src/libstd/num/strconv.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/num/strconv.rs b/src/libstd/num/strconv.rs
index 407c8ea61d9..b15f334e233 100644
--- a/src/libstd/num/strconv.rs
+++ b/src/libstd/num/strconv.rs
@@ -199,8 +199,8 @@ pub fn int_to_str_bytes_common<T: Int>(num: T, radix: uint, sign: SignFormat, f:
             current_digit_signed
         };
         buf[cur] = match current_digit.to_u8().unwrap() {
-            i @ 0..9 => b'0' + i,
-            i        => b'a' + (i - 10),
+            i @ 0...9 => b'0' + i,
+            i         => b'a' + (i - 10),
         };
         cur += 1;