From 2e8ebb7c27f45b677c07c8edb960c1f7ff04e20c Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 10 Nov 2011 15:18:01 -0800 Subject: [PATCH] stdlib: Update the example in std::comm Due to a bug in channel destructors this examples fails when logging is off Issue #1155 --- src/lib/comm.rs | 5 ++--- 1 file 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) { > comm::send(c, "Hello, World"); > }); > -> log comm::recv(p); +> io::println(comm::recv(p)); */