1
Fork 0

for x in range(a, b) -> for x in a..b

sed -i 's/in range(\([^,]*\), *\([^()]*\))/in \1\.\.\2/g' **/*.rs
This commit is contained in:
Jorge Aparicio 2015-01-26 15:46:12 -05:00
parent c300d681bd
commit 7d661af9c8
155 changed files with 490 additions and 490 deletions

View file

@ -37,7 +37,7 @@
//!
//! let five = Arc::new(5i);
//!
//! for _ in range(0u, 10) {
//! for _ in 0u..10 {
//! let five = five.clone();
//!
//! Thread::spawn(move || {
@ -54,7 +54,7 @@
//!
//! let five = Arc::new(Mutex::new(5i));
//!
//! for _ in range(0u, 10) {
//! for _ in 0u..10 {
//! let five = five.clone();
//!
//! Thread::spawn(move || {
@ -98,7 +98,7 @@ use heap::deallocate;
/// let numbers: Vec<_> = (0..100u32).map(|i| i as f32).collect();
/// let shared_numbers = Arc::new(numbers);
///
/// for _ in range(0u, 10) {
/// for _ in 0u..10 {
/// let child_numbers = shared_numbers.clone();
///
/// Thread::spawn(move || {