about summary refs log tree commit diff
path: root/library/std/src/sync
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2020-10-07 11:48:26 -0600
committerGitHub <noreply@github.com>2020-10-07 11:48:26 -0600
commit56b51a9751600dd65ad4bbda5c0f3d7b8c6db970 (patch)
tree6518a4af2a4b6c5976eba0413bac83265d43bbaf /library/std/src/sync
parentdeec53052312ac709f6a37110b59ada486bea0bd (diff)
downloadrust-56b51a9751600dd65ad4bbda5c0f3d7b8c6db970.tar.gz
rust-56b51a9751600dd65ad4bbda5c0f3d7b8c6db970.zip
(docs): make mutex error comment consistent with codebase
Diffstat (limited to 'library/std/src/sync')
-rw-r--r--library/std/src/sync/mutex.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sync/mutex.rs b/library/std/src/sync/mutex.rs
index e8f5a6f4294..a01ebb316e8 100644
--- a/library/std/src/sync/mutex.rs
+++ b/library/std/src/sync/mutex.rs
@@ -276,7 +276,7 @@ impl<T: ?Sized> Mutex<T> {
     /// # Errors
     ///
     /// If another user of this mutex panicked while holding the mutex, then
-    /// this call will return failure if the mutex would otherwise be
+    /// this call will return an error if the mutex would otherwise be
     /// acquired.
     ///
     /// # Examples