From 81cf02ffbeafb622a7d5860f33900779b45ee899 Mon Sep 17 00:00:00 2001 From: Andrew Walbran Date: Thu, 19 Jan 2023 13:49:41 +0000 Subject: [PATCH] Fix typos and details. --- src/concurrency/shared_state.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/concurrency/shared_state.md b/src/concurrency/shared_state.md index bb59b8fe..73b5d101 100644 --- a/src/concurrency/shared_state.md +++ b/src/concurrency/shared_state.md @@ -3,9 +3,9 @@ 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 exits, -* [`Mutex`][2]: ensures mutual exclusion access to the `T` value. +* [`Arc`][1], atomic reference counted `T`: handles sharing between threads and + takes care to deallocate `T` when the last reference is dropped, +* [`Mutex`][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