diff options
| author | bors <bors@rust-lang.org> | 2023-12-10 09:02:29 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-10 09:02:29 +0000 |
| commit | c1a39193788d3f9cea80c4e3179ea56b8e1f5046 (patch) | |
| tree | 44bf1a05817742a371ea07833f4bc7bb33afc9f6 /library/std/src | |
| parent | 42dfac5e08b87900dd513124dd0b2540c16f267a (diff) | |
| parent | 7d50a39763d1a9509175dc2feaa1b2d8880b7769 (diff) | |
| download | rust-c1a39193788d3f9cea80c4e3179ea56b8e1f5046.tar.gz rust-c1a39193788d3f9cea80c4e3179ea56b8e1f5046.zip | |
Auto merge of #118792 - naglis:fix-mutex-doc-typo, r=workingjubilee
Fix typo in `std::sync::Mutex` example
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/sync/mutex.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sync/mutex.rs b/library/std/src/sync/mutex.rs index b4ae6b7e07e..0c001d7c258 100644 --- a/library/std/src/sync/mutex.rs +++ b/library/std/src/sync/mutex.rs @@ -146,7 +146,7 @@ use crate::sys::locks as sys; /// let result = data.iter().fold(0, |acc, x| acc + x * 2); /// data.push(result); /// // We drop the `data` explicitly because it's not necessary anymore and the -/// // thread still has work to do. This allow other threads to start working on +/// // thread still has work to do. This allows other threads to start working on /// // the data immediately, without waiting for the rest of the unrelated work /// // to be done here. /// // |
