about summary refs log tree commit diff
path: root/src/lib
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-11-10 15:18:01 -0800
committerBrian Anderson <banderson@mozilla.com>2011-11-10 15:18:01 -0800
commit2e8ebb7c27f45b677c07c8edb960c1f7ff04e20c (patch)
treea4f9d281410375e5c0ccb7f3aeaec8830fa0b084 /src/lib
parent12f2b4989ef77550648c11b5940fbe86a5351698 (diff)
downloadrust-2e8ebb7c27f45b677c07c8edb960c1f7ff04e20c.tar.gz
rust-2e8ebb7c27f45b677c07c8edb960c1f7ff04e20c.zip
stdlib: Update the example in std::comm
Due to a bug in channel destructors this examples fails when logging is off

Issue #1155
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));
 
 */