Skip to content

Commit e138953

Browse files
committed
[Docs] intro typo
1 parent 1c82e60 commit e138953

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/doc/intro.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -442,10 +442,10 @@ It gives us this error:
442442
```
443443

444444
It mentions that "numbers moved into closure environment". Because we referred
445-
to `numbers` inside of our `proc`, and we create ten `proc`s, we would have ten
446-
references. Rust detects this and gives us the error: we claim that `numbers`
447-
has ownership, but our code tries to make ten owners. This may cause a safety
448-
problem, so Rust disallows it.
445+
to `numbers` inside of our `proc`, and we create three `proc`s, we would have
446+
three references. Rust detects this and gives us the error: we claim that
447+
`numbers` has ownership, but our code tries to make ten owners. This may cause
448+
a safety problem, so Rust disallows it.
449449

450450
What to do here? Rust has two types that helps us: `Arc<T>` and `Mutex<T>`.
451451
"Arc" stands for "atomically reference counted." In other words, an Arc will

0 commit comments

Comments
 (0)