Skip to content

Commit bcbebd2

Browse files
committed
Simplify language on mutex page
The “iff” phrasing has confused people in the past.
1 parent f5b8238 commit bcbebd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/concurrency/shared-state/mutex.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ implementation.
3939
protected data.
4040
- You can get an `&mut T` from an `&Mutex<T>` by taking the lock. The
4141
`MutexGuard` ensures that the `&mut T` doesn't outlive the lock being held.
42-
- `Mutex<T>` implements both `Send` and `Sync` iff (if and only if) `T`
43-
implements `Send`.
42+
- `Mutex<T>` implements both `Send` and `Sync` if and only if `T` implements
43+
`Send`.
4444
- A read-write lock counterpart: `RwLock`.
4545
- Why does `lock()` return a `Result`?
4646
- If the thread that held the `Mutex` panicked, the `Mutex` becomes "poisoned"

0 commit comments

Comments
 (0)