summaryrefslogtreecommitdiff
path: root/src/collection
diff options
context:
space:
mode:
authorBotahamec <botahamec@outlook.com>2024-09-25 20:40:53 -0400
committerBotahamec <botahamec@outlook.com>2024-09-25 20:40:53 -0400
commitcc57eea563e9c12122dd47c8b6133dab8660c1b4 (patch)
treef7fc16806226a29d78f22487e14c617f0b8863fb /src/collection
parent60e577e3832a2194281e66b33be13abffec953b6 (diff)
Fix doc comment for ordered_try_lock
Diffstat (limited to 'src/collection')
-rw-r--r--src/collection/utils.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/collection/utils.rs b/src/collection/utils.rs
index dc58399..8177c1d 100644
--- a/src/collection/utils.rs
+++ b/src/collection/utils.rs
@@ -22,8 +22,8 @@ pub unsafe fn ordered_try_lock(locks: &[&dyn RawLock]) -> bool {
}
}
-/// Locks the locks in the order they are given. This causes deadlock f this is
-/// called by multiple threads with the locks in different orders.
+/// Locks the locks in the order they are given. This causes deadlock if this
+/// is called by multiple threads with the locks in different orders.
pub unsafe fn ordered_try_read(locks: &[&dyn RawLock]) -> bool {
unsafe {
for (i, lock) in locks.iter().enumerate() {