We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 683fa74 + 3d60bf4 commit 13744caCopy full SHA for 13744ca
src/libstd/sync/mutex.rs
@@ -61,7 +61,7 @@ use sys_common::poison::{self, TryLockError, TryLockResult, LockResult};
61
/// let data = Arc::new(Mutex::new(0));
62
///
63
/// let (tx, rx) = channel();
64
-/// for _ in 0..10 {
+/// for _ in 0..N {
65
/// let (data, tx) = (data.clone(), tx.clone());
66
/// thread::spawn(move || {
67
/// // The shared state can only be accessed once the lock is held.
0 commit comments