mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-07 10:06:22 +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
|
||||
primarily done via two types:
|
||||
|
||||
* [`Arc<T>`][1], atomic reference counted `T`: handled sharing between threads and
|
||||
takes care to deallocate `T` when the last thread exits,
|
||||
* [`Mutex<T>`][2]: ensures mutual exclusion access to the `T` value.
|
||||
* [`Arc<T>`][1], atomic reference counted `T`: handles sharing between threads and
|
||||
takes care to deallocate `T` when the last reference is dropped,
|
||||
* [`Mutex<T>`][2]: ensures mutually exclusive access to the `T` value.
|
||||
|
||||
[1]: https://doc.rust-lang.org/std/sync/struct.Arc.html
|
||||
[2]: https://doc.rust-lang.org/std/sync/struct.Mutex.html
|
||||
|
Loading…
x
Reference in New Issue
Block a user