1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-07 01:56:21 +02:00

Fix typos and details.

This commit is contained in:
Andrew Walbran 2023-01-19 13:49:41 +00:00
parent cc402a7788
commit 81cf02ffbe

View File

@ -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