Merge pull request #531 from chariot6/patch-1

typo fix in concurrency.md
This commit is contained in:
Carol (Nichols || Goulding)
2017-03-13 09:04:08 -04:00
committed by GitHub
+1 -1
View File
@@ -238,7 +238,7 @@ This won't work, however, and will give us the error:
As the error message mentions, `Rc` cannot be sent between threads safely. This As the error message mentions, `Rc` cannot be sent between threads safely. This
is because the internal reference count is not maintained in a thread safe is because the internal reference count is not maintained in a thread safe
matter and can have a data race. manner and can have a data race.
To solve this, we'll use `Arc<T>`, Rust's standard atomic reference count type. To solve this, we'll use `Arc<T>`, Rust's standard atomic reference count type.