Skip to content

Commit 95e6933

Browse files
raindevsteveklabnik
authored andcommitted
---
yaml --- r: 174216 b: refs/heads/batch c: 9ed27df h: refs/heads/master v: v3
1 parent 8584478 commit 95e6933

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/issue-18208-method-dispatch-2: 9e1eae4fb9b6527315b4441cf8a0f5ca911d1671
3030
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32-
refs/heads/batch: 873ae555e9a42fd12b0a92134112ec000d749ab2
32+
refs/heads/batch: 9ed27df180be7b006bbbd364812767280087b123
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 44a287e6eb22ec3c2a687fc156813577464017f7
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

branches/batch/src/doc/intro.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -424,11 +424,11 @@ Let's see an example. This Rust code will not compile:
424424
use std::thread::Thread;
425425
426426
fn main() {
427-
let mut numbers = vec![1i, 2i, 3i];
427+
let mut numbers = vec![1is, 2is, 3is];
428428
429-
for i in range(0u, 3u) {
429+
for i in 0..3 {
430430
Thread::spawn(move || {
431-
for j in range(0, 3) { numbers[j] += 1 }
431+
for j in 0..3 { numbers[j] += 1 }
432432
});
433433
}
434434
}
@@ -478,9 +478,9 @@ use std::thread::Thread;
478478
use std::sync::{Arc,Mutex};
479479
480480
fn main() {
481-
let numbers = Arc::new(Mutex::new(vec![1i, 2i, 3i]));
481+
let numbers = Arc::new(Mutex::new(vec![1is, 2is, 3is]));
482482
483-
for i in range(0u, 3u) {
483+
for i in 0..3 {
484484
let number = numbers.clone();
485485
Thread::spawn(move || {
486486
let mut array = number.lock().unwrap();

0 commit comments

Comments
 (0)