1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-20 14:31:15 +02:00

Copy-editing on the shared state page

The access is to the specific `T` value found in the `Mutex<T>`.
This commit is contained in:
Martin Geisler 2022-12-27 17:14:45 +01:00 committed by GitHub
parent 94933b43f1
commit cc0c02aa14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ 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 for some `T` value.
* [`Mutex<T>`][2]: ensures mutual exclusion 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