@@ -50,13 +50,13 @@ concurrency at this writing:
5050* [ ` sync::DuplexStream ` ] - An extension of ` pipes::stream ` that allows both sending and receiving,
5151* [ ` sync::SyncChan ` ] - An extension of ` pipes::stream ` that provides synchronous message sending,
5252* [ ` sync::SyncPort ` ] - An extension of ` pipes::stream ` that acknowledges each message received,
53- * [ ` sync::rendezvous ` ] - Creates a stream whose channel, upon sending a message, blocks until the
53+ * [ ` sync::rendezvous ` ] - Creates a stream whose channel, upon sending a message, blocks until the
5454 message is received.
5555* [ ` sync::Arc ` ] - The Arc (atomically reference counted) type, for safely sharing immutable data,
5656* [ ` sync::RWArc ` ] - A dual-mode Arc protected by a reader-writer lock,
5757* [ ` sync::MutexArc ` ] - An Arc with mutable data protected by a blocking mutex,
5858* [ ` sync::Semaphore ` ] - A counting, blocking, bounded-waiting semaphore,
59- * [ ` sync::Mutex ` ] - A blocking, bounded-waiting, mutual exclusion lock with an associated
59+ * [ ` sync::Mutex ` ] - A blocking, bounded-waiting, mutual exclusion lock with an associated
6060 FIFO condition variable,
6161* [ ` sync::RWLock ` ] - A blocking, no-starvation, reader-writer lock with an associated condvar,
6262* [ ` sync::Barrier ` ] - A barrier enables multiple tasks to synchronize the beginning
@@ -343,8 +343,8 @@ a single large vector of floats. Each task needs the full vector to perform its
343343
344344~~~
345345# extern crate sync;
346+ extern crate rand;
346347# use std::vec;
347- # use std::rand;
348348use sync::Arc;
349349
350350fn pnorm(nums: &~[f64], p: uint) -> f64 {
@@ -376,9 +376,9 @@ created by the line
376376
377377~~~
378378# extern crate sync;
379+ # extern crate rand;
379380# use sync::Arc;
380381# use std::vec;
381- # use std::rand;
382382# fn main() {
383383# let numbers = vec::from_fn(1000000, |_| rand::random::<f64>());
384384let numbers_arc=Arc::new(numbers);
@@ -389,9 +389,9 @@ and a clone of it is sent to each task
389389
390390~~~
391391# extern crate sync;
392+ # extern crate rand;
392393# use sync::Arc;
393394# use std::vec;
394- # use std::rand;
395395# fn main() {
396396# let numbers=vec::from_fn(1000000, |_| rand::random::<f64>());
397397# let numbers_arc = Arc::new(numbers);
@@ -406,9 +406,9 @@ Each task recovers the underlying data by
406406
407407~~~
408408# extern crate sync;
409+ # extern crate rand;
409410# use sync::Arc;
410411# use std::vec;
411- # use std::rand;
412412# fn main() {
413413# let numbers=vec::from_fn(1000000, |_| rand::random::<f64>());
414414# let numbers_arc=Arc::new(numbers);
0 commit comments