diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2015-01-26 15:44:22 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2015-01-29 07:46:44 -0500 |
| commit | c300d681bd2e901ef39591bbfb1ea4568ac6be70 (patch) | |
| tree | ee0b4b0a74846595b700d1b2375fd10309b63a22 /src/libcollections/str.rs | |
| parent | bedd8108dc9b79402d1ea5349d766275f73398ff (diff) | |
| download | rust-c300d681bd2e901ef39591bbfb1ea4568ac6be70.tar.gz rust-c300d681bd2e901ef39591bbfb1ea4568ac6be70.zip | |
`range(a, b).foo()` -> `(a..b).foo()`
sed -i 's/ range(\([^,]*\), *\([^()]*\))\./ (\1\.\.\2)\./g' **/*.rs
Diffstat (limited to 'src/libcollections/str.rs')
| -rw-r--r-- | src/libcollections/str.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs index dee70c03a06..cfc8218dc1c 100644 --- a/src/libcollections/str.rs +++ b/src/libcollections/str.rs @@ -2122,7 +2122,7 @@ mod tests { #[test] fn test_chars_decoding() { let mut bytes = [0u8; 4]; - for c in range(0u32, 0x110000).filter_map(|c| ::core::char::from_u32(c)) { + for c in (0u32..0x110000).filter_map(|c| ::core::char::from_u32(c)) { let len = c.encode_utf8(&mut bytes).unwrap_or(0); let s = ::core::str::from_utf8(&bytes[..len]).unwrap(); if Some(c) != s.chars().next() { @@ -2134,7 +2134,7 @@ mod tests { #[test] fn test_chars_rev_decoding() { let mut bytes = [0u8; 4]; - for c in range(0u32, 0x110000).filter_map(|c| ::core::char::from_u32(c)) { + for c in (0u32..0x110000).filter_map(|c| ::core::char::from_u32(c)) { let len = c.encode_utf8(&mut bytes).unwrap_or(0); let s = ::core::str::from_utf8(&bytes[..len]).unwrap(); if Some(c) != s.chars().rev().next() { |
