diff options
| author | naglis <827324+naglis@users.noreply.github.com> | 2023-12-10 02:21:53 +0200 |
|---|---|---|
| committer | naglis <827324+naglis@users.noreply.github.com> | 2023-12-10 02:21:53 +0200 |
| commit | 7d50a39763d1a9509175dc2feaa1b2d8880b7769 (patch) | |
| tree | a4c97fe120d4ba20abcddd008e32351715e7bc84 /library/std | |
| parent | 06e02d5b259c1e88cbf0c74366d9e0a4c7cfd6d9 (diff) | |
| download | rust-7d50a39763d1a9509175dc2feaa1b2d8880b7769.tar.gz rust-7d50a39763d1a9509175dc2feaa1b2d8880b7769.zip | |
Fix typo in `std::sync::Mutex` example
Diffstat (limited to 'library/std')
| -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. /// // |
