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;