about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorGeoffry Song <goffrie@gmail.com>2017-04-09 19:42:01 -0400
committerGitHub <noreply@github.com>2017-04-09 19:42:01 -0400
commit3d60bf45f42fe3ab6f6a64a983ed256d86ffdbbe (patch)
tree92bf70b769f1cc32cc8e797a769eba989f679690 /src
parentad36c2f5528d617db66c244d8bcbfc4b36da0ca0 (diff)
downloadrust-3d60bf45f42fe3ab6f6a64a983ed256d86ffdbbe.tar.gz
rust-3d60bf45f42fe3ab6f6a64a983ed256d86ffdbbe.zip
Minor fix to mutex example
Presumably `N` was supposed to be used in both places.
Diffstat (limited to 'src')
-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.