File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
29
29
refs/heads/issue-18208-method-dispatch-2: 9e1eae4fb9b6527315b4441cf8a0f5ca911d1671
30
30
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
31
31
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32
- refs/heads/batch: 873ae555e9a42fd12b0a92134112ec000d749ab2
32
+ refs/heads/batch: 9ed27df180be7b006bbbd364812767280087b123
33
33
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34
34
refs/heads/beta: 44a287e6eb22ec3c2a687fc156813577464017f7
35
35
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
Original file line number Diff line number Diff line change @@ -424,11 +424,11 @@ Let's see an example. This Rust code will not compile:
424
424
use std::thread::Thread;
425
425
426
426
fn main () {
427
- let mut numbers = vec! [1i, 2i, 3i ];
427
+ let mut numbers = vec! [1is, 2is, 3is ];
428
428
429
- for i in range(0u, 3u) {
429
+ for i in 0..3 {
430
430
Thread::spawn(move || {
431
- for j in range(0, 3) { numbers[j] += 1 }
431
+ for j in 0..3 { numbers[j] += 1 }
432
432
});
433
433
}
434
434
}
@@ -478,9 +478,9 @@ use std::thread::Thread;
478
478
use std::sync::{Arc,Mutex};
479
479
480
480
fn main () {
481
- let numbers = Arc::new(Mutex::new(vec! [1i, 2i, 3i ]));
481
+ let numbers = Arc::new(Mutex::new(vec! [1is, 2is, 3is ]));
482
482
483
- for i in range(0u, 3u) {
483
+ for i in 0..3 {
484
484
let number = numbers.clone ();
485
485
Thread::spawn(move || {
486
486
let mut array = number.lock().unwrap ();
You can’t perform that action at this time.
0 commit comments