From 02de11c1e74de0f942aa463dcfbdcfeef3ef60ee Mon Sep 17 00:00:00 2001 From: Michael Neumann Date: Thu, 24 Jan 2013 07:25:57 -0600 Subject: [PATCH] Fix example code --- src/libcore/oldcomm.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libcore/oldcomm.rs b/src/libcore/oldcomm.rs index c221df293dc..89300be9ab4 100644 --- a/src/libcore/oldcomm.rs +++ b/src/libcore/oldcomm.rs @@ -24,14 +24,14 @@ across channels. # Example ~~~ -let po = comm::Port(); -let ch = comm::Chan(po); +let po = oldcomm::Port(); +let ch = oldcomm::Chan(&po); do task::spawn { - comm::send(ch, "Hello, World"); + oldcomm::send(ch, ~"Hello, World"); } -io::println(comm::recv(p)); +io::println(oldcomm::recv(po)); ~~~ # Note