Skip to content

Commit

Permalink
Fixes small error on the doc (task part)
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Raimundo committed Oct 12, 2014
1 parent 38517d0 commit 1cbce30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/guide.md
Expand Up @@ -5062,8 +5062,8 @@ println!("The value of x[0] is: {}", x[0]); // error: use of moved value: `x`
```

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

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

0 comments on commit 1cbce30

Please sign in to comment.