Skip to content

Commit 55ca089

Browse files
committed
Correct comment in Mutex example
1 parent 57c8a3e commit 55ca089

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sync/mutex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ use sys_common::poison::{self, TryLockError, TryLockResult, LockResult};
6666
/// for _ in 0..10 {
6767
/// let (data, tx) = (data.clone(), tx.clone());
6868
/// thread::spawn(move || {
69-
/// // The shared static can only be accessed once the lock is held.
69+
/// // The shared state can only be accessed once the lock is held.
7070
/// // Our non-atomic increment is safe because we're the only thread
7171
/// // which can access the shared state when the lock is held.
7272
/// //

0 commit comments

Comments
 (0)