about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-04-10 02:24:44 +0000
committerbors <bors@rust-lang.org>2017-04-10 02:24:44 +0000
commit13744ca91c93c17340e63290abd42479a3bafc1a (patch)
treeed409af9bf829eafe4f7df1c9eb5b56a61bc109e /src/libstd/sync
parent683fa7438ffe02c08a39ecfa8e997760e1090e7e (diff)
parent3d60bf45f42fe3ab6f6a64a983ed256d86ffdbbe (diff)
downloadrust-13744ca91c93c17340e63290abd42479a3bafc1a.tar.gz
rust-13744ca91c93c17340e63290abd42479a3bafc1a.zip
Auto merge of #41175 - goffrie:patch-1, r=frewsxcv
Minor fix to mutex example

Presumably `N` was supposed to be used in both places.
Diffstat (limited to 'src/libstd/sync')
-rw-r--r--src/libstd/sync/mutex.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/mutex.rs b/src/libstd/sync/mutex.rs
index f2c178a1ad5..a27f621e6b2 100644
--- a/src/libstd/sync/mutex.rs
+++ b/src/libstd/sync/mutex.rs
@@ -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.