mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-07 18:16:15 +02:00
Fix typos and details.
This commit is contained in:
parent
cc402a7788
commit
81cf02ffbe
@ -3,9 +3,9 @@
|
|||||||
Rust uses the type system to enforce synchronization of shared data. This is
|
Rust uses the type system to enforce synchronization of shared data. This is
|
||||||
primarily done via two types:
|
primarily done via two types:
|
||||||
|
|
||||||
* [`Arc<T>`][1], atomic reference counted `T`: handled sharing between threads and
|
* [`Arc<T>`][1], atomic reference counted `T`: handles sharing between threads and
|
||||||
takes care to deallocate `T` when the last thread exits,
|
takes care to deallocate `T` when the last reference is dropped,
|
||||||
* [`Mutex<T>`][2]: ensures mutual exclusion access to the `T` value.
|
* [`Mutex<T>`][2]: ensures mutually exclusive access to the `T` value.
|
||||||
|
|
||||||
[1]: https://doc.rust-lang.org/std/sync/struct.Arc.html
|
[1]: https://doc.rust-lang.org/std/sync/struct.Arc.html
|
||||||
[2]: https://doc.rust-lang.org/std/sync/struct.Mutex.html
|
[2]: https://doc.rust-lang.org/std/sync/struct.Mutex.html
|
||||||
|
Loading…
x
Reference in New Issue
Block a user