Skip to content

Commit ad25e56

Browse files
committed
rollup merge of #17986 : gamazeps/docissue
2 parents 02350ac + 1cbce30 commit ad25e56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5061,8 +5061,8 @@ println!("The value of x[0] is: {}", x[0]); // error: use of moved value: `x`
50615061
```
50625062

50635063
`x` is now owned by the proc, and so we can't use it anymore. Many other
5064-
languages would let us do this, but it's not safe to do so. Rust's type system
5065-
catches the error.
5064+
languages would let us do this, but it's not safe to do so. Rust's borrow
5065+
checker catches the error.
50665066

50675067
If tasks were only able to capture these values, they wouldn't be very useful.
50685068
Luckily, tasks can communicate with each other through **channel**s. Channels

0 commit comments

Comments
 (0)