Skip to content

Commit 22d59d3

Browse files
author
Stjepan Glavina
committed
Typos
1 parent 82cf041 commit 22d59d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ impl<T> Lock<T> {
115115
self.lock_slow().await
116116
}
117117

118-
/// Slow path for acquiring the mutex.
118+
/// Slow path for acquiring the lock.
119119
#[cold]
120120
pub async fn lock_slow(&self) -> LockGuard<T> {
121121
// Get the current time.
@@ -133,7 +133,7 @@ impl<T> Lock<T> {
133133
// Unlocked and somebody is starved - notify the first waiter in line.
134134
s if s % 2 == 0 => self.0.lock_ops.notify_one(),
135135

136-
// The mutex is currently locked.
136+
// The lock is currently acquired.
137137
_ => {}
138138
}
139139

@@ -148,7 +148,7 @@ impl<T> Lock<T> {
148148
// Unlocked and somebody is starved - notify the first waiter in line.
149149
s if s % 2 == 0 => self.0.lock_ops.notify_one(),
150150

151-
// The mutex is currently locked.
151+
// The lock is currently acquired.
152152
_ => {}
153153
}
154154

@@ -182,7 +182,7 @@ impl<T> Lock<T> {
182182
// Unlocked and somebody is starved - notify the first waiter in line.
183183
s if s % 2 == 0 => self.0.lock_ops.notify_one(),
184184

185-
// The mutex is currently locked.
185+
// The lock is currently acquired.
186186
_ => {}
187187
}
188188

0 commit comments

Comments
 (0)