diff options
| author | Neil Pankey <neil@wire.im> | 2014-10-18 16:15:38 -0700 |
|---|---|---|
| committer | Neil Pankey <npankey@gmail.com> | 2014-10-18 17:37:54 -0700 |
| commit | e1389530cf5dca112f5d282acfa7f08a08e114bc (patch) | |
| tree | 8c8a75a8dd9f4746cdb79c00e6cbf7622fc73fb6 /src | |
| parent | 1c82e60ca78da1f659db0c7dc82fe8c05566224f (diff) | |
| download | rust-e1389530cf5dca112f5d282acfa7f08a08e114bc.tar.gz rust-e1389530cf5dca112f5d282acfa7f08a08e114bc.zip | |
[Docs] intro typo
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/intro.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/doc/intro.md b/src/doc/intro.md index b45610faebc..1eb2d6f64e7 100644 --- a/src/doc/intro.md +++ b/src/doc/intro.md @@ -442,10 +442,10 @@ It gives us this error: ``` It mentions that "numbers moved into closure environment". Because we referred -to `numbers` inside of our `proc`, and we create ten `proc`s, we would have ten -references. Rust detects this and gives us the error: we claim that `numbers` -has ownership, but our code tries to make ten owners. This may cause a safety -problem, so Rust disallows it. +to `numbers` inside of our `proc`, and we create three `proc`s, we would have +three references. Rust detects this and gives us the error: we claim that +`numbers` has ownership, but our code tries to make ten owners. This may cause +a safety problem, so Rust disallows it. What to do here? Rust has two types that helps us: `Arc<T>` and `Mutex<T>`. "Arc" stands for "atomically reference counted." In other words, an Arc will |
