Skip to content

Commit 56b51a9

Browse files
authored
(docs): make mutex error comment consistent with codebase
1 parent deec530 commit 56b51a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sync/mutex.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ impl<T: ?Sized> Mutex<T> {
276276
/// # Errors
277277
///
278278
/// If another user of this mutex panicked while holding the mutex, then
279-
/// this call will return failure if the mutex would otherwise be
279+
/// this call will return an error if the mutex would otherwise be
280280
/// acquired.
281281
///
282282
/// # Examples

0 commit comments

Comments
 (0)