diff options
| author | bors <bors@rust-lang.org> | 2014-10-01 03:17:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-10-01 03:17:24 +0000 |
| commit | 2f15dcd4d3865f9cc466637027eb02d5607b2bb7 (patch) | |
| tree | 1a4d8526c45a53753c612bcbb6d283928c927cbc /src/libstd | |
| parent | 57a05cf49b3149427e3fe190c07f8343a29ad86c (diff) | |
| parent | 416144b8279fbffceacea6d0fd90e0fd1f8ce53d (diff) | |
| download | rust-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.rs | 4 |
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; |
