Skip to content

Commit af0906a

Browse files
committed
---
yaml --- r: 196523 b: refs/heads/auto c: b62c110 h: refs/heads/master i: 196521: 94947c0 196519: 4c06c2f v: v3
1 parent 5a67b51 commit af0906a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 29582d39bd67b2c3f7a9e05e2eecf4db52097fc5
13+
refs/heads/auto: b62c11023c4fdbb1e6ef9f074310a8e95db7827e
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/doc/trpl/concurrency.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,9 @@ We now call `clone()` on our `Arc`, which increases the internal count. This
245245
handle is then moved into the new thread. Let's examine the body of the
246246
thread more closely:
247247

248-
```
248+
```rust
249249
# use std::sync::{Arc, Mutex};
250250
# use std::thread;
251-
#
252251
# fn main() {
253252
# let data = Arc::new(Mutex::new(vec![1u32, 2, 3]));
254253
# for i in 0..2 {
@@ -258,7 +257,6 @@ thread::spawn(move || {
258257
data[i] += 1;
259258
});
260259
# }
261-
#
262260
# thread::sleep_ms(50);
263261
# }
264262
```

0 commit comments

Comments
 (0)