diff --git a/src/concurrency/shared_state.md b/src/concurrency/shared_state.md index 1e403d79..bb59b8fe 100644 --- a/src/concurrency/shared_state.md +++ b/src/concurrency/shared_state.md @@ -4,8 +4,8 @@ Rust uses the type system to enforce synchronization of shared data. This is primarily done via two types: * [`Arc`][1], atomic reference counted `T`: handled sharing between threads and - takes care to deallocate `T` when the last thread exists, -* [`Mutex`][2]: ensures mutual exclusion for to the `T` value. + takes care to deallocate `T` when the last thread exits, +* [`Mutex`][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