From ca0607051a01e691f62752f68ecc08fb24f2d3b2 Mon Sep 17 00:00:00 2001 From: Eric Holk Date: Thu, 16 Aug 2012 16:45:42 -0700 Subject: [PATCH] Fix compile errors in tutorial tests. --- doc/tutorial.md | 4 ++-- src/libstd/std.rc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/tutorial.md b/doc/tutorial.md index e6c414c186df..1d7a5a9585a8 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -3002,8 +3002,8 @@ Here is the code for the parent task: let (from_child, to_child) = DuplexStream(); -do spawn |to_child| { - stringifier(); +do spawn || { + stringifier(to_child); }; from_child.send(22u); diff --git a/src/libstd/std.rc b/src/libstd/std.rc index 91a4ff23c199..6945c7e1815b 100644 --- a/src/libstd/std.rc +++ b/src/libstd/std.rc @@ -18,7 +18,7 @@ import core::*; export net, net_tcp, net_ip, net_url; export uv, uv_ll, uv_iotask, uv_global_loop; export c_vec, timer; -export sync, arc; +export sync, arc, comm; export bitv, deque, fun_treemap, list, map; export smallintmap, sort, treemap; export rope, arena, par;