Skip to content

Commit 1cbce30

Browse files
author
Felix Raimundo
committed
Fixes small error on the doc (task part)
1 parent 38517d0 commit 1cbce30

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
@@ -5062,8 +5062,8 @@ println!("The value of x[0] is: {}", x[0]); // error: use of moved value: `x`
50625062
```
50635063

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

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

0 commit comments

Comments
 (0)