From cc57eea563e9c12122dd47c8b6133dab8660c1b4 Mon Sep 17 00:00:00 2001 From: Botahamec Date: Wed, 25 Sep 2024 20:40:53 -0400 Subject: Fix doc comment for ordered_try_lock --- src/collection/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/collection') 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() { -- cgit v1.2.3