1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-01-09 01:02:47 +02:00

Merge pull request #54 from Arthur-Milchior/patch-4

Typos
This commit is contained in:
Martin Geisler 2022-12-27 17:16:13 +01:00 committed by GitHub
commit f217cd12a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,8 +4,8 @@ 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 exists,
* [`Mutex<T>`][2]: ensures mutual exclusion for to the `T` value.
takes care to deallocate `T` when the last thread exits,
* [`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