about summary refs log tree commit diff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/comm.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/comm.rs b/src/lib/comm.rs
index 2d72c85bde9..4aa66ed28fc 100644
--- a/src/lib/comm.rs
+++ b/src/lib/comm.rs
@@ -15,15 +15,14 @@ shared boxes (@T) may not be transmitted across channels.
 
 Example:
 
-> use std::task;
-> use std::comm;
+> use std::{task, comm, io};
 >
 > let p = comm::port();
 > task::spawn(comm::chan(p), fn (c: chan<str>) {
 >   comm::send(c, "Hello, World");
 > });
 >
-> log comm::recv(p);
+> io::println(comm::recv(p));
 
 */