Skip to content

Commit 7edb7e7

Browse files
Rollup merge of #77660 - nilslice:patch-1, r=jyn514
(docs): make mutex error comment consistent with codebase Although exceptionally minor, I found this stands out from other error reporting language used in doc comments. With the existence of the `failure` crate, I suppose this could be slightly ambiguous. In any case, this change brings the particular comment into a consistent state with other mentions of returning errors.
2 parents 738a41b + 56b51a9 commit 7edb7e7

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)