Skip to content

Commit

Permalink
Auto merge of #41175 - goffrie:patch-1, r=frewsxcv
Browse files Browse the repository at this point in the history
Minor fix to mutex example

Presumably `N` was supposed to be used in both places.
  • Loading branch information
bors committed Apr 10, 2017
2 parents 683fa74 + 3d60bf4 commit 13744ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/sync/mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ use sys_common::poison::{self, TryLockError, TryLockResult, LockResult};
/// let data = Arc::new(Mutex::new(0));
///
/// let (tx, rx) = channel();
/// for _ in 0..10 {
/// for _ in 0..N {
/// let (data, tx) = (data.clone(), tx.clone());
/// thread::spawn(move || {
/// // The shared state can only be accessed once the lock is held.
Expand Down

0 comments on commit 13744ca

Please sign in to comment.