diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-10-13 15:10:01 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-10-13 15:10:01 -0700 |
| commit | ad25e560a03efa8ef81e559fc082aa9d9c1565bf (patch) | |
| tree | 890e5225da2ce3ae03c8c3ef01b1ed7282490e8a | |
| parent | 02350ac20bbaa64638b563b01667a38abb52c554 (diff) | |
| parent | 1cbce309fe2a2fb91577eb8010a378f4ae32daa8 (diff) | |
| download | rust-ad25e560a03efa8ef81e559fc082aa9d9c1565bf.tar.gz rust-ad25e560a03efa8ef81e559fc082aa9d9c1565bf.zip | |
rollup merge of #17986 : gamazeps/docissue
| -rw-r--r-- | src/doc/guide.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/guide.md b/src/doc/guide.md index 9f7e51155c6..7f02f74fa3b 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -5061,8 +5061,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 |
