Skip to content

Commit 0e38b88

Browse files
committed
Update line numbers referenced by compiler errors
Hat tip to @tshepang in rust-lang#23871
1 parent adf8e11 commit 0e38b88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/trpl/concurrency.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ fn main() {
162162
This gives us an error:
163163

164164
```text
165-
12:17 error: capture of moved value: `data`
165+
8:17 error: capture of moved value: `data`
166166
data[i] += 1;
167167
^~~~
168168
```
@@ -201,10 +201,10 @@ fn main() {
201201
Here's the error:
202202

203203
```text
204-
<anon>:11:9: 11:22 error: the trait `core::marker::Send` is not implemented for the type `std::sync::mutex::MutexGuard<'_, collections::vec::Vec<u32>>` [E0277]
204+
<anon>:9:9: 9:22 error: the trait `core::marker::Send` is not implemented for the type `std::sync::mutex::MutexGuard<'_, collections::vec::Vec<u32>>` [E0277]
205205
<anon>:11 thread::spawn(move || {
206206
^~~~~~~~~~~~~
207-
<anon>:11:9: 11:22 note: `std::sync::mutex::MutexGuard<'_, collections::vec::Vec<u32>>` cannot be sent between threads safely
207+
<anon>:9:9: 9:22 note: `std::sync::mutex::MutexGuard<'_, collections::vec::Vec<u32>>` cannot be sent between threads safely
208208
<anon>:11 thread::spawn(move || {
209209
^~~~~~~~~~~~~
210210
```

0 commit comments

Comments
 (0)