about summary refs log tree commit diff
path: root/library/std
diff options
context:
space:
mode:
authornaglis <827324+naglis@users.noreply.github.com>2023-12-10 02:21:53 +0200
committernaglis <827324+naglis@users.noreply.github.com>2023-12-10 02:21:53 +0200
commit7d50a39763d1a9509175dc2feaa1b2d8880b7769 (patch)
treea4c97fe120d4ba20abcddd008e32351715e7bc84 /library/std
parent06e02d5b259c1e88cbf0c74366d9e0a4c7cfd6d9 (diff)
downloadrust-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.rs2
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.
 /// //